Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1219,6 +1219,8 @@ public Object leftShiftWithOverflow(int a, int b) {
public int leftShiftNeg(int a, int b) {
if (-b >= Integer.SIZE) {
return 0;
} else if (b == Integer.MIN_VALUE) {
return 0;
} else {
return a >> -b;
}

0 comments on commit caeedd4

Please sign in to comment.