diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-28 19:04:45 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-28 19:04:45 +0000 |
commit | 5283f9b7975eecb6bc8c0ec1fea62b49988f3ec1 (patch) | |
tree | 483c9fad1290bc40c38f383cd388068f469baec2 /numpy | |
parent | 5f96d3eabf87cdddb3e38f2096d013ec17f9c2a9 (diff) | |
download | numpy-5283f9b7975eecb6bc8c0ec1fea62b49988f3ec1.tar.gz |
Initializing funcname_data inside InitOperators to fix compilation errors on Win32 AMD64 using SDK.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/code_generators/generate_umath.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py index 26ef5218f..5f38b528f 100644 --- a/numpy/core/code_generators/generate_umath.py +++ b/numpy/core/code_generators/generate_umath.py @@ -568,7 +568,11 @@ def make_arrays(funcdict): 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'); |