Skip to content

Commit b555876

Browse files
qunaibittimfel
authored andcommitted
Add specialization for SetItemScalarNode
1 parent 776e8b3 commit b555876

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/SequenceStorageNodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,11 @@ protected void doLong(LongSequenceStorage storage, int idx, long value) {
847847
storage.setLongItemNormalized(idx, value);
848848
}
849849

850+
@Specialization
851+
protected void doLong(LongSequenceStorage storage, int idx, int value) {
852+
storage.setLongItemNormalized(idx, value);
853+
}
854+
850855
@Specialization(guards = "!value.isNative()")
851856
protected void doLong(LongSequenceStorage storage, int idx, PInt value) {
852857
try {

0 commit comments

Comments
 (0)