Author: Carl Friedrich Bolz-Tereick <cfb...@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()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to