This commit is contained in:
cozis
2021-11-02 16:41:56 +00:00
parent f351be78bb
commit 31b7cab2bf
4 changed files with 11 additions and 16 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ Object *Object_NewMap(int num, Heap *heap, Error *error)
obj->mapper_size = mapper_size;
obj->count = 0;
obj->mapper = Heap_RawMalloc(heap, sizeof(int) * capacity, error);
obj->mapper = Heap_RawMalloc(heap, sizeof(int) * mapper_size, error);
obj->keys = Heap_RawMalloc(heap, sizeof(Object*) * capacity, error);
obj->vals = Heap_RawMalloc(heap, sizeof(Object*) * capacity, error);