Use ARRAY_SIZE in ax-general.c
authorTom Tromey <tom@tromey.com>
Tue, 20 Jun 2023 17:11:06 +0000 (11:11 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Jun 2023 17:21:51 +0000 (11:21 -0600)
commit00a854287778c852191df9f9815c5d601daa5ae1
treeab2fe6cf4973891a98d68e9b8305349bd53a8e5f
parent3ba0581955632c4b269bbcf8a458daafc9d167a6
Use ARRAY_SIZE in ax-general.c

This changes a couple of spots in ax-general.c to use ARRAY_SIZE.
While making this change, I noticed that one of the bounds checks was
incorrect.

Reviewed-by: John Baldwin <jhb@FreeBSD.org>
gdb/ax-general.c