diff options
author | xiaoyu <xiaoyu@ucloud.cn> | 2012-05-18 20:34:10 +0800 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-08-18 10:59:01 +0200 |
commit | d786fb6e94fab0204a05caa0966fc2a37d9168ee (patch) | |
tree | 905e8c4a8edfafe30bd18c418c5b4c0d315fe3ba | |
parent | 6a7a32a806aa7a10239803293a04966d75409942 (diff) | |
download | redis-d786fb6e94fab0204a05caa0966fc2a37d9168ee.tar.gz |
Clarify argument to dict macro
d is more clear because the type of argument is dict not dictht
Closes #513
-rw-r--r-- | src/dict.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.h b/src/dict.h index 042eb54f7..b82e137f9 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); |