Commits

mattip  committed 730ce60

tests pass

  • Participants
  • Parent commits b544731
  • Branches numpypy-longdouble

Comments (0)

Files changed (1)

File pypy/rlib/rstruct/ieee.py

         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)