File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ public abstract static class RTrueDivNode extends PythonBinaryBuiltinNode {
414
414
415
415
@ Specialization
416
416
double doPL (PInt right , long left ) {
417
- if (right .isZero ()) {
417
+ if (right .isZero ()) {
418
418
throw raise (PythonErrorType .ZeroDivisionError , "division by zero" );
419
419
}
420
420
return op (PInt .longToBigInteger (left ), right .getValue ());
@@ -677,8 +677,8 @@ Object doLongWithOverflow(long x, long y) {
677
677
// Some bits greater than 2^31 that might cause overflow
678
678
// Check the result using the divide operator
679
679
// and check for the special case of Long.MIN_VALUE * -1
680
- if (((y != 0 ) && (r / y != x )) ||
681
- (x == Long .MIN_VALUE && y == -1 )) {
680
+ if (((y != 0 ) && (r / y != x )) ||
681
+ (x == Long .MIN_VALUE && y == -1 )) {
682
682
return factory ().createInt (mul (PInt .longToBigInteger (x ), PInt .longToBigInteger (y )));
683
683
}
684
684
}
You can’t perform that action at this time.
0 commit comments