Author: Brian Kearns <[email protected]>
Branch:
Changeset: r69008:d4d83c8d386a
Date: 2014-01-29 18:22 -0500
http://bitbucket.org/pypy/pypy/changeset/d4d83c8d386a/
Log: fix float16 changes
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -995,10 +995,10 @@
hbits = float_pack(value, 2)
except OverflowError:
hbits = float_pack(rfloat.INFINITY, 2)
+ hbits = rffi.cast(self._STORAGE_T, hbits)
if not self.native:
hbits = byteswap(hbits)
- raw_storage_setitem(storage, i + offset,
- rffi.cast(self._STORAGE_T, hbits))
+ raw_storage_setitem(storage, i + offset, hbits)
class Float32(BaseType, Float):
T = rffi.FLOAT
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit