mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
Use R_ARRAY_SIZE in r_anal_op_family_from_string
This commit is contained in:
parent
a137e23cc2
commit
48c9edaed6
@ -570,7 +570,7 @@ static const struct op_family of[] = {
|
||||
|
||||
R_API int r_anal_op_family_from_string(const char *f) {
|
||||
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)) {
|
||||
return of[i].id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user