Small changes

This commit is contained in:
bʰedoh₂ swé 2024-06-17 04:01:43 +05:00
parent b12347f92d
commit ba325f15a1
2 changed files with 8 additions and 8 deletions

View File

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

View File

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