[pypy-commit] pypy numpypy.float16: promote to float64
mattip
noreply at buildbot.pypy.org
Fri Nov 9 10:51:34 CET 2012
Author: mattip <matti.picus at gmail.com>
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]
More information about the pypy-commit
mailing list