From 3f9d24c617016a906c3a2de5bc69cbab536375dc Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 4 Aug 2020 22:04:11 +0100 Subject: [PATCH] Fix signed/unsigned comparison --- src/env.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/env.c b/src/env.c index 59e941a..1be57da 100644 --- a/src/env.c +++ b/src/env.c @@ -191,11 +191,11 @@ struct Environment defaultEnv() {"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); } - 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); }