mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
More CodeQL fixes
This commit is contained in:
@@ -31,8 +31,8 @@ func resolved_char(ch rune, emoji_variation string) string {
|
||||
}
|
||||
|
||||
func decode_hint(text string) int {
|
||||
x, err := strconv.ParseUint(text, INDEX_BASE, 32)
|
||||
if err != nil {
|
||||
x, err := strconv.ParseInt(text, INDEX_BASE, 0)
|
||||
if err != nil || x < 0 {
|
||||
return -1
|
||||
}
|
||||
return int(x)
|
||||
|
||||
Reference in New Issue
Block a user