Fix wrong size of specialMethodNames

This commit is contained in:
K. Lange 2022-07-26 19:23:47 +09:00
parent 8fa4a62344
commit 9075a589b8

View File

@ -1472,7 +1472,7 @@ void krk_initVM(int flags) {
/* Global objects */
vm.exceptions = calloc(1,sizeof(struct Exceptions));
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.modules);