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 67762a8 commit b4eea6aCopy full SHA for b4eea6a
x/ref/lib/slang/compiler.go
@@ -57,7 +57,7 @@ func handleLiteral(lit tokPos, tt reflect.Type) (reflect.Value, error) {
57
// The go parser has already made sure this token is an int.
58
panic(fmt.Sprintf("%v: not an int: %v", lit.lit, err))
59
}
60
- if iv > math.MaxInt { //nolint:typecheck
+ if iv > math.MaxInt32 {
61
return reflect.ValueOf(iv), nil
62
63
return reflect.ValueOf(int(iv)), nil
0 commit comments