gc
This commit is contained in:
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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user