Author: mattip <[email protected]>
Branch: numpypy.float16
Changeset: r58799:b717b432359d
Date: 2012-11-08 14:35 -0800
http://bitbucket.org/pypy/pypy/changeset/b717b432359d/

Log:    promote to float64

diff --git a/pypy/module/micronumpy/interp_ufuncs.py 
b/pypy/module/micronumpy/interp_ufuncs.py
--- a/pypy/module/micronumpy/interp_ufuncs.py
+++ b/pypy/module/micronumpy/interp_ufuncs.py
@@ -417,9 +417,9 @@
         # we only promoted to long on 32-bit or to longlong on 64-bit
         # this is really for dealing with the Long and Ulong dtypes
         if LONG_BIT == 32:
-            dtypenum += 2
+            dtypenum += 3
         else:
-            dtypenum += 3
+            dtypenum += 4
         return interp_dtype.get_dtype_cache(space).builtin_dtypes[dtypenum]
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to