Fix signed/unsigned comparison

This commit is contained in:
= 2020-08-04 22:04:11 +01:00
parent d87322b6a5
commit 3f9d24c617
1 changed files with 2 additions and 2 deletions

View File

@ -191,11 +191,11 @@ struct Environment defaultEnv()
{"at", &at}, {"rest", &rest}, {"rev", &reverse}, {"at", &at}, {"rest", &rest}, {"rev", &reverse},
}; };
for(int i = 0; i < sizeof(symFuncs)/sizeof(symFuncs[0]); i++) { for(unsigned i = 0; i < sizeof(symFuncs)/sizeof(symFuncs[0]); i++) {
addFunc(symFuncs[i].sym, symFuncs[i].func, &e); addFunc(symFuncs[i].sym, symFuncs[i].func, &e);
} }
for(int i = 0; i < sizeof(codes)/sizeof(codes[0]); i++) { for(unsigned i = 0; i < sizeof(codes)/sizeof(codes[0]); i++) {
parseEval(codes[i], &e); parseEval(codes[i], &e);
} }