Commits

Amaury Forgeot d'Arc  committed e97cb4e

Build a list instead of a string slice so the .reverse() operation can work.

  • Participants
  • Parent commits 91cbcdd
  • Branches fast-forward

Comments (0)

Files changed (1)

File lib_pypy/struct.py

     return ''.join(result)
 
 def unpack_float(data, index, size, le):
-    binary = data[index:index + 8]
+    binary = [data[i] for i in range(index, index + 8)]
     if le == "big":
         binary.reverse()
     unsigned = 0