diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2010-07-11 06:06:58 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2010-07-11 06:06:58 +0000 |
commit | 39180414c9986eec4d0406c6cf600a9b5847858f (patch) | |
tree | 0de2d6c039e3e395ea5cd29a3b6dea183a414b3c /numpy/f2py/cfuncs.py | |
parent | 7d2d320f2da7d65bdeb773594c2e9d1979b4eb4d (diff) | |
download | numpy-39180414c9986eec4d0406c6cf600a9b5847858f.tar.gz |
f2py: fixed typos in TRYCOMPLEXPYARRAYTEMPLATE.
Diffstat (limited to 'numpy/f2py/cfuncs.py')
-rw-r--r-- | numpy/f2py/cfuncs.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index a6b1c933d..722760ad0 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -342,10 +342,7 @@ cppmacros['TRYCOMPLEXPYARRAYTEMPLATE']="""\ case PyArray_SHORT: *(short *)(arr->data)=(*v).r; break;\\ case PyArray_UBYTE: *(unsigned char *)(arr->data)=(*v).r; break;\\ case PyArray_BYTE: *(signed char *)(arr->data)=(*v).r; break;\\ - case PyArray_BOOL: *(npy_bool *)(arr->data)=((*v).r!=0 && (*v).i!=0)); break;\\ - case PyArray_UBYTE: *(unsigned char *)(arr->data)=(*v).r; break;\\ - case PyArray_BYTE: *(signed char *)(arr->data)=(*v).r; break;\\ - case PyArray_SHORT: *(short *)(arr->data)=(*v).r; break;\\ + case PyArray_BOOL: *(npy_bool *)(arr->data)=((*v).r!=0 && (*v).i!=0); break;\\ case PyArray_USHORT: *(npy_ushort *)(arr->data)=(*v).r; break;\\ case PyArray_UINT: *(npy_uint *)(arr->data)=(*v).r; break;\\ case PyArray_ULONG: *(npy_ulong *)(arr->data)=(*v).r; break;\\ |