,,,
This commit is contained in:
parent
43663714ca
commit
f62030772a
2
njvm.c
2
njvm.c
@ -314,7 +314,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 = my_malloc(size * 1024);
|
||||||
if (stack.stack == NULL) {
|
if (stack.stack == NULL) {
|
||||||
perror("malloc");
|
perror("malloc");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user