[Scipy-svn] r6514 - branches/0.8.x/scipy/signal

scipy-svn@scip... scipy-svn@scip...
Thu Jun 17 06:52:42 CDT 2010


Author: rgommers
Date: 2010-06-17 06:52:42 -0500 (Thu, 17 Jun 2010)
New Revision: 6514

Modified:
   branches/0.8.x/scipy/signal/sigtoolsmodule.c
Log:
BUG: fix 64-bit problem in signal.medfilt. Patch by C. Gohlke.

Backport of r6513.

Modified: branches/0.8.x/scipy/signal/sigtoolsmodule.c
===================================================================
--- branches/0.8.x/scipy/signal/sigtoolsmodule.c	2010-06-17 11:47:37 UTC (rev 6513)
+++ branches/0.8.x/scipy/signal/sigtoolsmodule.c	2010-06-17 11:52:42 UTC (rev 6514)
@@ -1254,7 +1254,7 @@
     if (a_image == NULL) goto fail;
 
     if (size != NULL) {
-	a_size = (PyArrayObject *)PyArray_ContiguousFromObject(size, PyArray_LONG, 1, 1);
+	a_size = (PyArrayObject *)PyArray_ContiguousFromObject(size, NPY_INTP, 1, 1);
 	if (a_size == NULL) goto fail;
 	if ((RANK(a_size) != 1) || (DIMS(a_size)[0] < 2)) 
 	    PYERR("Size must be a length two sequence");



More information about the Scipy-svn mailing list