Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosnicolaou committed Dec 13, 2022
1 parent 67762a8 commit b4eea6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ref/lib/slang/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func handleLiteral(lit tokPos, tt reflect.Type) (reflect.Value, error) {
// The go parser has already made sure this token is an int.
panic(fmt.Sprintf("%v: not an int: %v", lit.lit, err))
}
if iv > math.MaxInt { //nolint:typecheck
if iv > math.MaxInt32 {
return reflect.ValueOf(iv), nil
}
return reflect.ValueOf(int(iv)), nil
Expand Down

0 comments on commit b4eea6a

Please sign in to comment.