Skip to content

Commit 6f0c030

Browse files
committed
first set the type, then write a long
1 parent 7676b83 commit 6f0c030

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/frame/WriteLocalVariableNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ public int write(VirtualFrame frame, int value) {
116116

117117
@Specialization(guards = {"isLongOrObjectKind(frame)", "isPrimitiveInt(value)"}, rewriteOn = ArithmeticException.class)
118118
public PInt writePIntAsLong(VirtualFrame frame, PInt value) {
119-
frame.setLong(frameSlot, value.longValueExact());
120119
frame.getFrameDescriptor().setFrameSlotKind(frameSlot, FrameSlotKind.Long);
120+
frame.setLong(frameSlot, value.longValueExact());
121121
return value;
122122
}
123123

0 commit comments

Comments
 (0)