mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-08 02:18:11 +01:00
(unw_regname): Fix signed/unsigned comparison.
(Logical change 1.104)
This commit is contained in:
parent
522e2ccbe0
commit
87e2dfb9af
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ static const char *regname[] =
|
|||
const char *
|
||||
unw_regname (unw_regnum_t reg)
|
||||
{
|
||||
if (reg < NELEMS (regname))
|
||||
if (reg < (unw_regnum_t) NELEMS (regname))
|
||||
return regname[reg];
|
||||
else
|
||||
return "???";
|
||||
|
|
Loading…
Reference in a new issue