commit 3213af26e61c79f83d2a8b24fd52400ad75d0a79
parent 8a27c4f42951d70aaac829c70b211db1f8c61283
Author: NunoSempere <nuno.sempere@protonmail.com>
Date: Sat, 6 May 2023 22:55:02 -0400
fix nasty for loop bug
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/mumble b/mumble
Binary files differ.
diff --git a/src/mumble.c b/src/mumble.c
@@ -664,7 +664,7 @@ lispval* builtin_def(lispval* v, lispenv* env)
lispval* symbols = source->cell[0];
lispval* values = source->cell[1];
- for (int i; i < symbols->count; i++) {
+ for (int i=0; i < symbols->count; i++) {
LISPVAL_ASSERT(symbols->cell[i]->type == LISPVAL_SYM, "Error: in function def, the first list of items should be of type symbol: def { { a b } { 1 2 } }");
if (VERBOSE)
print_lispval_tree(symbols, 0);