summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/f2py/cfuncs.py5
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;\\