1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-19 22:27:39 +01:00

(unw_regname): Fix signed/unsigned comparison.

(Logical change 1.104)
This commit is contained in:
hp.com!davidm 2003-09-25 05:29:14 +00:00
parent 522e2ccbe0
commit 87e2dfb9af

View file

@ -8,7 +8,7 @@ static const char *regname[] =
const char * const char *
unw_regname (unw_regnum_t reg) unw_regname (unw_regnum_t reg)
{ {
if (reg < NELEMS (regname)) if (reg < (unw_regnum_t) NELEMS (regname))
return regname[reg]; return regname[reg];
else else
return "???"; return "???";