Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r48031:005e74019b69
Date: 2011-10-13 22:38 +0200
http://bitbucket.org/pypy/pypy/changeset/005e74019b69/
Log: bytes[i] is already a number
diff --git a/lib_pypy/struct.py b/lib_pypy/struct.py
--- a/lib_pypy/struct.py
+++ b/lib_pypy/struct.py
@@ -118,7 +118,7 @@
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit