Commits

Amaury Forgeot d'Arc committed 005e740

bytes[i] is already a number

  • Participants
  • Parent commits 9824a8b
  • Branches py3k

Comments (0)

Files changed (1)

lib_pypy/struct.py

         binary.reverse()
     unsigned = 0
     for i in range(8):
-        unsigned |= ord(binary[i]) << (i * 8)
+        unsigned |= binary[i] << (i * 8)
     return float_unpack(unsigned, size, le)
 
 def round_to_nearest(x):