From a1eb33344e858de812e6549a39044d86d4d9f39f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 12 Jul 2017 22:23:07 +0200 Subject: [PATCH] Fix issue for OA addressing. --- m-dict.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/m-dict.h b/m-dict.h index 8effd4f8..be06c40c 100644 --- a/m-dict.h +++ b/m-dict.h @@ -942,6 +942,11 @@ typedef enum { map->count_delete = org->count_delete; \ map->upper_limit = org->upper_limit; \ map->lower_limit = org->lower_limit; \ + map->data = M_GET_REALLOC key_oplist (M_C3(dict_pair_,name,_t), NULL, map->mask+1); \ + if (map->data == NULL) { \ + M_MEMORY_FULL(sizeof (M_C3(dict_pair_,name,_t)) * (map->mask+1)); \ + return ; \ + } \ for(size_t i = 0; i <= org->mask; i++) { \ if (oor_equal_p(org->data[i].key, DICTI_OA_EMPTY)) { \ oor_set(org->data[i].key, DICTI_OA_EMPTY); \