Author: mattip <[email protected]>
Branch: numpypy-longdouble
Changeset: r59574:730ce60a2949
Date: 2012-12-25 06:32 +0200
http://bitbucket.org/pypy/pypy/changeset/730ce60a2949/
Log: tests pass
diff --git a/pypy/rlib/rstruct/ieee.py b/pypy/rlib/rstruct/ieee.py
--- a/pypy/rlib/rstruct/ieee.py
+++ b/pypy/rlib/rstruct/ieee.py
@@ -269,5 +269,5 @@
QQ[0] |= r_ulonglong(c) << (i * 8)
for i in range(8, len(s)):
c = ord(s[len(s) - 1 - i if be else i])
- QQ[1] |= r_ulonglong(c) << (i * 8)
- return float_unpack80(QQ, len(s))
+ QQ[1] |= r_ulonglong(c) << ((i - 8) * 8)
+ return float_unpack80(QQ)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit