Return "" for rune < 0 in strconv.

This commit is contained in:
Jeroen van Rijn
2024-09-08 00:32:46 +02:00
parent 1ab0745ca8
commit 300b01d77d
+1 -1
View File
@@ -1729,7 +1729,7 @@ quote_rune :: proc(buf: []byte, r: rune) -> string {
}
}
if buf == nil {
if buf == nil || r < 0 {
return ""
}