This commit is contained in:
nilspolek 2024-01-28 22:29:20 +01:00
parent bc8a037a30
commit f348174229

2
njvm.c
View File

@ -313,7 +313,7 @@ int main(int argc, char *argv[]) {
int current = 0; int current = 0;
stack.size = &size; stack.size = &size;
stack.current = &current; stack.current = &current;
stack.stack = malloc(SIZE * 1024); stack.stack = malloc(size * 1024);
if (stack.stack == NULL) { if (stack.stack == NULL) {
perror("malloc"); perror("malloc");
} }