Use R_ARRAY_SIZE in r_anal_op_family_from_string

This commit is contained in:
Jules Maselbas 2023-01-06 12:46:30 +01:00 committed by pancake
parent a137e23cc2
commit 48c9edaed6

View File

@ -570,7 +570,7 @@ static const struct op_family of[] = {
R_API int r_anal_op_family_from_string(const char *f) { R_API int r_anal_op_family_from_string(const char *f) {
size_t i; size_t i;
for (i = 0; i < sizeof (of) / sizeof (of[0]); i ++) { for (i = 0; i < R_ARRAY_SIZE (of); i ++) {
if (!strcmp (f, of[i].name)) { if (!strcmp (f, of[i].name)) {
return of[i].id; return of[i].id;
} }