Add more assertions

This commit is contained in:
Patrick Pelissier committed 2020-12-21 15:16:16 +01:00
1 parent ad16b310e1
commit 1671ca8d67
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -490,6 +490,7 @@
if (M_UNLIKELY (new_size <= old_size)) { \
M_MEMORY_FULL((size_t)-1); \
} \
M_ASSERT (old_size > 1 && new_size > 1); \
/* Resize the table of the dictionnary */ \
M_C(name, _array_list_pair_resize)(map->table, new_size); \
/* Move the items to the new upper part */ \