diff options
author | Eric Jones <eric@enthought.com> | 2002-01-06 07:20:55 +0000 |
---|---|---|
committer | Eric Jones <eric@enthought.com> | 2002-01-06 07:20:55 +0000 |
commit | fbeedee8e7a99b9628832898379f8da9e132c43d (patch) | |
tree | a8075a5e2720ccbcd8babecea7ba803792590671 /weave/standard_array_spec.py | |
parent | b2e1b50ccd32c98a959f4d6c59fd84f714effd47 (diff) | |
download | numpy-fbeedee8e7a99b9628832898379f8da9e132c43d.tar.gz |
fixed a bug in declarations for ext modules. Types were not being cast correctly.
Diffstat (limited to 'weave/standard_array_spec.py')
-rw-r--r-- | weave/standard_array_spec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weave/standard_array_spec.py b/weave/standard_array_spec.py index 6a00d53d5..78eb0f176 100644 --- a/weave/standard_array_spec.py +++ b/weave/standard_array_spec.py @@ -48,8 +48,8 @@ class array_specification(base_specification): 'PyArrayObject* %(name)s = py_to_numpy(py_%(name)s,"%(name)s");\n' \ 'int* _N%(name)s = %(name)s->dimensions;\n' \ 'int* _S%(name)s = %(name)s->strides;\n' \ - 'int* _D%(name)s = %(name)s->nd;\n' \ - '%(type)s* %(name)s_data = %(name)s->data;\n' + 'int _D%(name)s = %(name)s->nd;\n' \ + '%(type)s* %(name)s_data = (%(type)s*) %(name)s->data;\n' code = templ % locals() return code #def c_function_declaration_code(self): |