diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | src/eval.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ CFLAGS=-I. -pthread -Wall -Wextra -Wpedantic -O3 -lm -CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wswitch-default -CFLAGS+= -Wunreachable-code -Wswitch-enum -Wformat=2 -Wc11-extensions -g +CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Wcast-align +CFLAGS+= -Wunreachable-code -Wswitch-enum -Wformat=2 -g PREFIX ?= /usr BINDIR ?= ${PREFIX}/bin @@ -32,7 +32,7 @@ sym_t* eval(sym_t* symbol, hashtable_t* parentScope) { if (p.key != NULL) { sym_t* nextSym = (sym_t*)p.value; /* add params */ - for (int i = 0; i < symbol->argCount; i++) { + for (int i = 0; i < symbol->argCount && i < 100; i++) { char* keyName = malloc(6 * sizeof(char)); strcpy(keyName, "arg"); char index[3]; |
