Skip to content

Commit 596b6e8

Browse files
committed
Fix decoding condition profile index
1 parent d23baa4 commit 596b6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/PBytecodeRootNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ private boolean profileCondition(boolean value, byte[] localBC, int bci, boolean
769769
if (!useCachedNodes) {
770770
return value;
771771
}
772-
int index = Byte.toUnsignedInt(localBC[bci + 2]) & Byte.toUnsignedInt(localBC[bci + 3]) << 8;
772+
int index = Byte.toUnsignedInt(localBC[bci + 2]) | Byte.toUnsignedInt(localBC[bci + 3]) << 8;
773773
int t = conditionProfiles[index];
774774
int f = conditionProfiles[index + 1];
775775
boolean val = value;

0 commit comments

Comments
 (0)