[pypy-commit] pypy py3k: sync with cpython

gutworth noreply at buildbot.pypy.org
Thu Mar 15 04:35:43 CET 2012


Author: Benjamin Peterson <benjamin at python.org>
Branch: py3k
Changeset: r53660:e0ac8f83e4c9
Date: 2012-03-14 22:20 -0500
http://bitbucket.org/pypy/pypy/changeset/e0ac8f83e4c9/

Log:	sync with cpython

diff --git a/pypy/interpreter/astcompiler/assemble.py b/pypy/interpreter/astcompiler/assemble.py
--- a/pypy/interpreter/astcompiler/assemble.py
+++ b/pypy/interpreter/astcompiler/assemble.py
@@ -602,7 +602,7 @@
     return arg + 1
 
 def _compute_UNPACK_EX(arg):
-    return (arg % 256) + (arg // 256)
+    return (arg & 0xFF) + (arg >> 8)
 
 def _compute_BUILD_TUPLE(arg):
     return 1 - arg


More information about the pypy-commit mailing list