mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-26 21:13:42 +01:00
Fix missing NELEMS -> ARRAY_SIZE adjustment.
(Logical change 1.290)
This commit is contained in:
parent
09c959ad30
commit
df5acdd24a
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ static const char *regname[] =
|
|||
PROTECTED const char *
|
||||
unw_regname (unw_regnum_t reg)
|
||||
{
|
||||
if (reg < (unw_regnum_t) NELEMS (regname))
|
||||
if (reg < (unw_regnum_t) ARRAY_SIZE (regname))
|
||||
return regname[reg];
|
||||
else
|
||||
return "???";
|
||||
|
|
|
@ -49,7 +49,7 @@ static const char *regname[] =
|
|||
PROTECTED const char *
|
||||
unw_regname (unw_regnum_t reg)
|
||||
{
|
||||
if (reg < (unw_regnum_t) NELEMS (regname))
|
||||
if (reg < (unw_regnum_t) ARRAY_SIZE (regname))
|
||||
return regname[reg];
|
||||
else
|
||||
return "???";
|
||||
|
|
Loading…
Reference in a new issue