Skip to contentSkip to conversation

khash.h: Spell the null pointer as NULL

PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 khash.h: Spell the null pointer as NULL

Noticed by sparse. ("Using plain integer as NULL pointer")

---
 khash.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
khash.h +1 -1
index 0fdf39d..c4c1613 100644
@@ -114,7 +114,7 @@ static const double __ac_HASH_UPPER = 0.77;
 	}																	\
 	SCOPE int kh_resize_##name(kh_##name##_t *h, khint_t new_n_buckets) \
 	{ /* This function uses 0.25*n_buckets bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets. */ \
-		khint32_t *new_flags = 0;										\
+		khint32_t *new_flags = NULL;										\
 		khint_t j = 1;													\
 		{																\
 			kroundup32(new_n_buckets); 									\
Signature · 1 line
1.8.4