1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-01 18:57:38 +01:00

Fix missing NELEMS -> ARRAY_SIZE adjustment.

(Logical change 1.290)
This commit is contained in:
hp.com!davidm 2005-05-03 09:13:17 +00:00
parent 09c959ad30
commit df5acdd24a
2 changed files with 2 additions and 2 deletions

View file

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

View file

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