Index: trunk/Ohana/src/opihi/lib.data/spline.c
===================================================================
--- trunk/Ohana/src/opihi/lib.data/spline.c	(revision 39229)
+++ trunk/Ohana/src/opihi/lib.data/spline.c	(revision 39231)
@@ -32,4 +32,8 @@
   float dx, a, b, value;
   
+  // saturate correction at high and low ends
+  if (X < x[0]) return y[0];
+  if (X > x[N-1]) return y[N-1];
+
   /* find correct element in array (x must be sorted) */
   lo = 0;
@@ -90,4 +94,8 @@
   opihi_flt dx, a, b, value;
   
+  // saturate correction at high and low ends
+  if (X < x[0]) return y[0];
+  if (X > x[N-1]) return y[N-1];
+
   /* find correct element in array (x must be sorted) */
   lo = 0;
