Skip to content

Commit 7b0967e

Browse files
author
xiaojun
committed
Fix Overflow
1 parent 9d5ec4c commit 7b0967e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ public static long leftShift(long a, int b) {
32353235
}
32363236

32373237
public static long leftShift(int a, long b) {
3238-
return a << b;
3238+
return (long) a << b;
32393239
}
32403240

32413241
public static long leftShift(Long a, Long b) {

0 commit comments

Comments
 (0)