mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
sim: use ARRAY_SIZE instead of ad-hoc sizeof calculations
This commit is contained in:
@@ -1658,7 +1658,7 @@ init_dsp (struct bfd *abfd)
|
||||
{
|
||||
int i, tmp;
|
||||
|
||||
for (i = (sizeof sh_dsp_table / sizeof sh_dsp_table[0]) - 1; i >= 0; i--)
|
||||
for (i = ARRAY_SIZE (sh_dsp_table) - 1; i >= 0; i--)
|
||||
{
|
||||
tmp = sh_jump_table[0xf000 + i];
|
||||
sh_jump_table[0xf000 + i] = sh_dsp_table[i];
|
||||
|
||||
Reference in New Issue
Block a user