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:
parent
09c959ad30
commit
df5acdd24a
2 changed files with 2 additions and 2 deletions
|
@ -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 "???";
|
||||||
|
|
|
@ -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 "???";
|
||||||
|
|
Loading…
Reference in a new issue