More CodeQL fixes

This commit is contained in:
Kovid Goyal
2025-04-20 21:53:11 +05:30
parent adfcffa5d7
commit 237bb35ee9
6 changed files with 25 additions and 14 deletions

View File

@@ -806,7 +806,7 @@ func (f *Function) SetRegisterTo(self Register, val any) {
}
func (r Register) ARMId() uint32 {
num, err := strconv.Atoi(r.Name[1:])
num, err := strconv.ParseUint(r.Name[1:], 10, 32)
if err != nil {
panic(err)
}