* m68k-tdep.c (m68k_register_name): Use ARRAY_SIZE.
This commit is contained in:
parent
abfcdd21a5
commit
0765265284
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-08-31 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* m68k-tdep.c (m68k_register_name): Use ARRAY_SIZE.
|
||||
|
||||
2005-08-31 Jim Wilson <wilson@specifix.com>
|
||||
|
||||
* i386fbsd-tdep.c (i386fbsd_sc_reg_offset): Make it non-static.
|
||||
|
|
|
@ -122,8 +122,7 @@ m68k_register_name (int regnum)
|
|||
"fpcontrol", "fpstatus", "fpiaddr", "fpcode", "fpflags"
|
||||
};
|
||||
|
||||
if (regnum < 0 ||
|
||||
regnum >= sizeof (register_names) / sizeof (register_names[0]))
|
||||
if (regnum < 0 || regnum >= ARRAY_SIZE (register_names))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
_("m68k_register_name: illegal register number %d"), regnum);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue