Index: trunk/psLib/src/math/psSpline.c
===================================================================
--- trunk/psLib/src/math/psSpline.c	(revision 10999)
+++ trunk/psLib/src/math/psSpline.c	(revision 12434)
@@ -6,6 +6,6 @@
 *  This file contains the routines that allocate, free, and evaluate splines.
 *
-*  @version $Revision: 1.157 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2007-01-09 22:38:53 $
+*  @version $Revision: 1.158 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2007-03-14 02:36:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -386,6 +386,7 @@
     tmpScalar.type.type = PS_TYPE_F32;
     tmpScalar.data.F32 = x;
-    psS32 binNum = p_psVectorBinDisect(spline->knots, &tmpScalar);
-    if (binNum < 0) {
+    psVectorBinaryDisectResult result;
+    psS32 binNum = psVectorBinaryDisect(&result, spline->knots, &tmpScalar);
+    if (result != PS_BINARY_DISECT_PASS) {
         psError(PS_ERR_UNKNOWN, false, "Could not perform bin dissection on spline->knots.\n");
         return(NAN);
