Use for-each loop

This commit is contained in:
Rangi42
2025-09-10 21:18:33 -04:00
parent 223b3d1921
commit 9f16881d64

View File

@@ -390,8 +390,8 @@ static char const *suggestDef(std::shared_ptr<MacroArgs> const macroArgs) {
char const *str = arg->c_str(); char const *str = arg->c_str();
static char const *types[] = {"EQUS", "EQU", "RB", "RW", "RL", "="}; static char const *types[] = {"EQUS", "EQU", "RB", "RW", "RL", "="};
for (size_t i = 0; i < std::size(types); ++i) { for (char const *type : types) {
if (char const *type = types[i]; strncasecmp(str, type, strlen(type)) == 0) { if (strncasecmp(str, type, strlen(type)) == 0) {
return type; return type;
} }
} }