summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/numerictypes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/numerictypes.py b/numpy/core/numerictypes.py
index 89d3a6d9d..57a0fbb19 100644
--- a/numpy/core/numerictypes.py
+++ b/numpy/core/numerictypes.py
@@ -302,8 +302,13 @@ def _set_array_types():
bits = 8*bytes
_add_array_type('float', bits)
_add_array_type('complex', bits)
+ _gi = dtype('p')
+ if _gi.type not in sctypes['int']:
+ sctypes['int'].append(_gi.type)
+ sctypes['uint'].append(dtype('P').type)
_set_array_types()
+
genericTypeRank = ['bool', 'int8', 'uint8', 'int16', 'uint16',
'int32', 'uint32', 'int64', 'uint64', 'int128',
'uint128', 'float16',