summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-05 22:25:56 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-05 22:25:56 +0000
commit88f59b32e212e41ec905969263345be7d335e8e2 (patch)
tree12bdde0a3be060da58bf76c4620e662d8e7c58db
parentd76c27de89576f888618a20c54216991f9bedaad (diff)
downloadnumpy-88f59b32e212e41ec905969263345be7d335e8e2.tar.gz
Add complex types correctly.
-rw-r--r--numpy/core/numerictypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numerictypes.py b/numpy/core/numerictypes.py
index 57a0fbb19..396c00de8 100644
--- a/numpy/core/numerictypes.py
+++ b/numpy/core/numerictypes.py
@@ -301,7 +301,7 @@ def _set_array_types():
for bytes in fbytes:
bits = 8*bytes
_add_array_type('float', bits)
- _add_array_type('complex', bits)
+ _add_array_type('complex', 2*bits)
_gi = dtype('p')
if _gi.type not in sctypes['int']:
sctypes['int'].append(_gi.type)