[Scipy-svn] r6294 - trunk/scipy/special

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Mar 31 12:30:49 EDT 2010


Author: ptvirtan
Date: 2010-03-31 11:30:49 -0500 (Wed, 31 Mar 2010)
New Revision: 6294

Modified:
   trunk/scipy/special/orthogonal_eval.pyx
Log:
BUG: special: fix int vs. long issue in orthogonal_eval.pyx

Modified: trunk/scipy/special/orthogonal_eval.pyx
===================================================================
--- trunk/scipy/special/orthogonal_eval.pyx	2010-03-31 06:49:33 UTC (rev 6293)
+++ trunk/scipy/special/orthogonal_eval.pyx	2010-03-31 16:30:49 UTC (rev 6294)
@@ -60,8 +60,8 @@
     cdef double x
     cdef char *ip1=args[0], *ip2=args[1], *op=args[2]
     for i in range(0, dimensions[0]):
-        (<double*>op)[0] = (<double(*)(int,double)>func)(
-            (<int*>ip1)[0], (<double*>ip2)[0])
+        (<double*>op)[0] = (<double(*)(long,double)>func)(
+            (<long*>ip1)[0], (<double*>ip2)[0])
         ip1 += steps[0]; ip2 += steps[1]; op += steps[2]
 
 cdef char _id_d_types[3]




More information about the Scipy-svn mailing list