+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.
"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