We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f563fc commit bbbabdeCopy full SHA for bbbabde
parser/lexer/utils.go
@@ -32,7 +32,7 @@ func unescape(value string) (string, error) {
32
// The string contains escape characters.
33
// The following logic is adapted from `strconv/quote.go`
34
var runeTmp [utf8.UTFMax]byte
35
- if n >= 2/3*math.MaxInt {
+ if n >= 2*math.MaxInt/3 {
36
return "", fmt.Errorf("too large string")
37
}
38
buf := make([]byte, 0, 3*n/2)
0 commit comments