[Scipy-svn] r2840 - trunk/Lib/sandbox/numexpr

scipy-svn@scip... scipy-svn@scip...
Fri Mar 9 16:18:40 CST 2007


Author: cookedm
Date: 2007-03-09 16:18:37 -0600 (Fri, 09 Mar 2007)
New Revision: 2840

Modified:
   trunk/Lib/sandbox/numexpr/interpreter.c
Log:
[numexpr] Fix so that MSVC Toolkit 2003 doesn't complain; from faltet


Modified: trunk/Lib/sandbox/numexpr/interpreter.c
===================================================================
--- trunk/Lib/sandbox/numexpr/interpreter.c	2007-03-08 17:06:49 UTC (rev 2839)
+++ trunk/Lib/sandbox/numexpr/interpreter.c	2007-03-09 22:18:37 UTC (rev 2840)
@@ -1055,12 +1055,13 @@
 
     for (i = 0; i < n_inputs; i++) {
         PyObject *a = PyTuple_GET_ITEM(a_inputs, i+n_inputs);
+        PyObject *b;
         char c = PyString_AS_STRING(self->signature)[i];
         int typecode = typecode_from_char(c);
         if (PyArray_NDIM(a) == 0) {
             /* Broadcast scalars */
             intp dims[1] = {BLOCK_SIZE1};
-            PyObject *b = PyArray_SimpleNew(1, dims, typecode);
+            b = PyArray_SimpleNew(1, dims, typecode);
             if (!b) goto cleanup_and_exit;
             self->memsteps[i+1] = 0;
             PyTuple_SET_ITEM(a_inputs, i+2*n_inputs, b);  /* steals reference */



More information about the Scipy-svn mailing list