Skip to content

Commit

Permalink
Fix wrong size of specialMethodNames
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Jul 26, 2022
1 parent 8fa4a62 commit 9075a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9075a58

Please sign in to comment.