[pypy-commit] pypy py3.6-wordcode: obscure, but this fixes translation
cfbolz
pypy.commits at gmail.com
Thu May 17 08:03:22 EDT 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6-wordcode
Changeset: r94609:69b270a1b887
Date: 2018-05-17 14:02 +0200
http://bitbucket.org/pypy/pypy/changeset/69b270a1b887/
Log: obscure, but this fixes translation
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -175,7 +175,7 @@
if opcode < HAVE_ARGUMENT:
raise BytecodeCorruption
next_instr += 2
- oparg = (oparg << 8) | arg
+ oparg = (oparg * 256) | arg
if opcode == opcodedesc.RETURN_VALUE.index:
w_returnvalue = self.popvalue()
More information about the pypy-commit
mailing list