From 5786a73e461151e4fe9888845dae6db4a77043ac Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 10 Feb 2010 09:36:01 +0000 Subject: [PATCH] I'm pretty sure that, when resizing a table, we want to copy the non-null nodes rather than the null ones. --- hash_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash_table.h b/hash_table.h index 0e9be1c..7c14f6c 100644 --- a/hash_table.h +++ b/hash_table.h @@ -182,7 +182,7 @@ static int PREFIX(_table_resize)(PREFIX(_table) *table) for (uint32_t i=0 ; itable_size ; i++) { MAP_TABLE_VALUE_TYPE value = copy->table[i].value; - if (MAP_TABLE_VALUE_NULL(value)) + if (!MAP_TABLE_VALUE_NULL(value)) { PREFIX(_insert)(table, value); }