summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxiaoyu <xiaoyu@ucloud.cn>2012-05-18 20:34:10 +0800
committerantirez <antirez@gmail.com>2014-08-27 10:29:57 +0200
commit467848460a35138b03aaf561d2e29dc1758f3efc (patch)
treea3ac24b6c8f461678ba0ce286f5a2e97e4fac5b3 /src
parent5e707c66dd71f301081e6ee34a0050b78c228466 (diff)
downloadredis-467848460a35138b03aaf561d2e29dc1758f3efc.tar.gz
Clarify argument to dict macro
d is more clear because the type of argument is dict not dictht Closes #513
Diffstat (limited to 'src')
-rw-r--r--src/dict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.h b/src/dict.h
index 2ef8f4f08..8045fb79f 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);