Skip to content

Commit b4eea6a

Browse files
committed
.
1 parent 67762a8 commit b4eea6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/ref/lib/slang/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func handleLiteral(lit tokPos, tt reflect.Type) (reflect.Value, error) {
5757
// The go parser has already made sure this token is an int.
5858
panic(fmt.Sprintf("%v: not an int: %v", lit.lit, err))
5959
}
60-
if iv > math.MaxInt { //nolint:typecheck
60+
if iv > math.MaxInt32 {
6161
return reflect.ValueOf(iv), nil
6262
}
6363
return reflect.ValueOf(int(iv)), nil

0 commit comments

Comments
 (0)