Skip to content

Commit bbbabde

Browse files
committed
Fix if
1 parent 3f563fc commit bbbabde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/lexer/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func unescape(value string) (string, error) {
3232
// The string contains escape characters.
3333
// The following logic is adapted from `strconv/quote.go`
3434
var runeTmp [utf8.UTFMax]byte
35-
if n >= 2/3*math.MaxInt {
35+
if n >= 2*math.MaxInt/3 {
3636
return "", fmt.Errorf("too large string")
3737
}
3838
buf := make([]byte, 0, 3*n/2)

0 commit comments

Comments
 (0)