Fix wrong size of specialMethodNames
This commit is contained in:
parent
8fa4a62344
commit
9075a589b8
2
src/vm.c
2
src/vm.c
@ -1472,7 +1472,7 @@ void krk_initVM(int flags) {
|
|||||||
/* Global objects */
|
/* Global objects */
|
||||||
vm.exceptions = calloc(1,sizeof(struct Exceptions));
|
vm.exceptions = calloc(1,sizeof(struct Exceptions));
|
||||||
vm.baseClasses = calloc(1,sizeof(struct BaseClasses));
|
vm.baseClasses = calloc(1,sizeof(struct BaseClasses));
|
||||||
vm.specialMethodNames = calloc(METHOD__MAX,sizeof(KrkValue*));
|
vm.specialMethodNames = calloc(METHOD__MAX,sizeof(KrkValue));
|
||||||
krk_initTable(&vm.strings);
|
krk_initTable(&vm.strings);
|
||||||
krk_initTable(&vm.modules);
|
krk_initTable(&vm.modules);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user