Author: mattip <[email protected]>
Branch: numpypy.float16
Changeset: r58800:b1f1cc455a09
Date: 2012-11-09 11:56 +0200
http://bitbucket.org/pypy/pypy/changeset/b1f1cc455a09/
Log: fix for 32 bit
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,7 +417,7 @@
# 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 += 3
+ dtypenum += 2
else:
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