1. Tobias Oberstein
  2. pypy

Commits

Benjamin Peterson  committed e0ac8f8

sync with cpython

  • Participants
  • Parent commits f8e09e4
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/interpreter/astcompiler/assemble.py

View file
     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