More CodeQL fixes

This commit is contained in:
Kovid Goyal 2025-04-20 21:53:11 +05:30
parent adfcffa5d7
commit 237bb35ee9
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
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)
}