summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/code_generators/generate_umath.py6
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');