This commit is contained in:
Elias Bennour 2024-01-28 23:10:28 +01:00
parent 43663714ca
commit f62030772a

2
njvm.c
View File

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