[Numpy-svn] r3935 - trunk/numpy/core/code_generators

numpy-svn@scip... numpy-svn@scip...
Sat Jul 28 14:04:51 CDT 2007


Author: pearu
Date: 2007-07-28 14:04:45 -0500 (Sat, 28 Jul 2007)
New Revision: 3935

Modified:
   trunk/numpy/core/code_generators/generate_umath.py
Log:
Initializing funcname_data inside InitOperators to fix compilation errors on Win32 AMD64 using SDK.

Modified: trunk/numpy/core/code_generators/generate_umath.py
===================================================================
--- trunk/numpy/core/code_generators/generate_umath.py	2007-07-28 13:28:18 UTC (rev 3934)
+++ trunk/numpy/core/code_generators/generate_umath.py	2007-07-28 19:04:45 UTC (rev 3935)
@@ -568,7 +568,11 @@
                 elif t.type == 'M':
                     datalist.append('(void *)"%s"' % t.func_data)
                 else:
-                    datalist.append('(void *)%s' % t.func_data)
+                    astr = '%s_data[%d] = (void *) %s;' % \
+                           (name, k, t.func_data)
+                    code2list.append(astr)
+                    datalist.append('(void *)NULL')
+                    #datalist.append('(void *)%s' % t.func_data)
                 sub += 1
             else:
                 datalist.append('(void *)NULL');



More information about the Numpy-svn mailing list