[Scipy-svn] r2882 - trunk/Lib/ndimage/src

scipy-svn@scip... scipy-svn@scip...
Wed Mar 28 11:46:27 CDT 2007


Author: stefan
Date: 2007-03-28 11:45:03 -0500 (Wed, 28 Mar 2007)
New Revision: 2882

Modified:
   trunk/Lib/ndimage/src/ni_interpolation.c
Log:
Correct boundary checking.


Modified: trunk/Lib/ndimage/src/ni_interpolation.c
===================================================================
--- trunk/Lib/ndimage/src/ni_interpolation.c	2007-03-28 15:01:14 UTC (rev 2881)
+++ trunk/Lib/ndimage/src/ni_interpolation.c	2007-03-28 16:45:03 UTC (rev 2882)
@@ -153,7 +153,7 @@
       in = -1;
       break;
     }
-  } else if (in >= len) {
+  } else if (in > len-1) {
     switch (mode) {
     case NI_EXTEND_MIRROR:
       if (len <= 1) {



More information about the Scipy-svn mailing list