zset: change the span of zskiplistNode to unsigned long
This commit is contained in:
parent
b6b9199396
commit
2d3bb10b74
@ -335,7 +335,7 @@ typedef long long mstime_t; /* millisecond time type. */
|
|||||||
/* Anti-warning macro... */
|
/* Anti-warning macro... */
|
||||||
#define UNUSED(V) ((void) V)
|
#define UNUSED(V) ((void) V)
|
||||||
|
|
||||||
#define ZSKIPLIST_MAXLEVEL 32 /* Should be enough for 2^32 elements */
|
#define ZSKIPLIST_MAXLEVEL 64 /* Should be enough for 2^64 elements */
|
||||||
#define ZSKIPLIST_P 0.25 /* Skiplist P = 1/4 */
|
#define ZSKIPLIST_P 0.25 /* Skiplist P = 1/4 */
|
||||||
|
|
||||||
/* Append only defines */
|
/* Append only defines */
|
||||||
@ -774,7 +774,7 @@ typedef struct zskiplistNode {
|
|||||||
struct zskiplistNode *backward;
|
struct zskiplistNode *backward;
|
||||||
struct zskiplistLevel {
|
struct zskiplistLevel {
|
||||||
struct zskiplistNode *forward;
|
struct zskiplistNode *forward;
|
||||||
unsigned int span;
|
unsigned long span;
|
||||||
} level[];
|
} level[];
|
||||||
} zskiplistNode;
|
} zskiplistNode;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user