From b7966f6b61058774e86c76ac68d0b4d172db386d Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 27 Feb 2018 22:41:20 +0100 Subject: [PATCH] Update assertions --- m-dict.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m-dict.h b/m-dict.h index 7039c6c4..550db6ef 100644 --- a/m-dict.h +++ b/m-dict.h @@ -583,7 +583,9 @@ #define DICTI_INITIAL_SIZE 16 #define DICTI_CONTRACT(name, map) do { \ + assert(map != NULL); \ assert(map->used <= map->upper_limit); \ + assert(map->used >= map->lower_limit); \ assert(M_POWEROF2_P(M_C(name, _array_list_pair_size)(map->table))); \ } while (0)