Small changes #4

Merged
Aeris merged 2 commits from :master into master 2024-06-16 23:12:47 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit ba325f15a1 - Show all commits

View File

@ -1,7 +1,11 @@
CC=clang CC ?= clang
CFLAGS ?=
all: all:
$(CC) -o lbr -O2 -Wall -Wextra -Wpedantic src/*.c $(CC) -o lbr -O2 -Wall -Wextra -Wpedantic $(CFLAGS) src/*.c
clean:
rm lbr
test: test:
./lbr tests/test.lb ./lbr tests/test.lb

View File

@ -532,11 +532,7 @@ void execute(Stack *stack, Stack *originstack, char *modname)
if (!strcmp(NAME, "size")) if (!strcmp(NAME, "size"))
{ {
int i = 0; stack_push(stack, stack->pointer);
while (i < stack->pointer)
i++;
stack_push(stack, i);
continue; continue;
} }