gc
This commit is contained in:
parent
bc8a037a30
commit
f348174229
2
njvm.c
2
njvm.c
@ -313,7 +313,7 @@ int main(int argc, char *argv[]) {
|
|||||||
int current = 0;
|
int current = 0;
|
||||||
stack.size = &size;
|
stack.size = &size;
|
||||||
stack.current = ¤t;
|
stack.current = ¤t;
|
||||||
stack.stack = malloc(SIZE * 1024);
|
stack.stack = malloc(size * 1024);
|
||||||
if (stack.stack == NULL) {
|
if (stack.stack == NULL) {
|
||||||
perror("malloc");
|
perror("malloc");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user