Index: trunk/psLib/src/math/psPolynomial.c
===================================================================
--- trunk/psLib/src/math/psPolynomial.c	(revision 1861)
+++ trunk/psLib/src/math/psPolynomial.c	(revision 1903)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-23 06:12:22 $
+ *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-25 23:05:07 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1699,5 +1699,5 @@
 all j>=i).  This routine does a binary disection of the vector and returns
 "i" such that (v[i] <= x <= v[i+1).  If x lies outside the range of v[],
-then this routine prints a warning message and returns -1.
+then this routine prints a warning message and returns (-2 or -1).
  
 XXX: Macro this for a few different types.
@@ -1716,6 +1716,12 @@
             "---- Calling p_psVectorBinDisectF32(%f)\n", x);
 
-    if ((x < bins[0]) ||
-            (x > bins[numBins-1])) {
+    if (x < bins[0]) {
+        psLogMsg(__func__, PS_LOG_WARN,
+                 "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
+                 x, bins[0], bins[numBins-1]);
+        return(-2);
+    }
+
+    if (x > bins[numBins-1]) {
         psLogMsg(__func__, PS_LOG_WARN,
                  "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
