We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22aa44d commit 3b49555Copy full SHA for 3b49555
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints/IntBuiltins.java
@@ -1185,6 +1185,12 @@ long doLL(long left, long right) {
1185
return left >> right;
1186
}
1187
1188
+ @Specialization
1189
+ PInt doIPi(int left, PInt right) {
1190
+ raiseNegativeShiftCount(!right.isZeroOrPositive());
1191
+ return factory().createInt(op(BigInteger.valueOf(left), right.intValue()));
1192
+ }
1193
+
1194
@Specialization
1195
PInt doLPi(long left, PInt right) {
1196
raiseNegativeShiftCount(!right.isZeroOrPositive());
0 commit comments