From 467848460a35138b03aaf561d2e29dc1758f3efc Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Fri, 18 May 2012 20:34:10 +0800 Subject: [PATCH] Clarify argument to dict macro d is more clear because the type of argument is dict not dictht Closes #513 --- src/dict.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict.h b/src/dict.h index 2ef8f4f0..8045fb79 100644 --- a/src/dict.h +++ b/src/dict.h @@ -142,7 +142,7 @@ typedef void (dictScanFunction)(void *privdata, const dictEntry *de); #define dictGetDoubleVal(he) ((he)->v.d) #define dictSlots(d) ((d)->ht[0].size+(d)->ht[1].size) #define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used) -#define dictIsRehashing(ht) ((ht)->rehashidx != -1) +#define dictIsRehashing(d) ((d)->rehashidx != -1) /* API */ dict *dictCreate(dictType *type, void *privDataPtr); -- GitLab