From 0f4c3330bcc3b83a98449ceaa23288ec4680d5be Mon Sep 17 00:00:00 2001 From: hzcheng Date: Sat, 7 Mar 2020 07:32:08 +0000 Subject: [PATCH] fix skiplist error --- src/util/inc/tskiplist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/inc/tskiplist.h b/src/util/inc/tskiplist.h index ca9cc330c8..ecdbc38a05 100644 --- a/src/util/inc/tskiplist.h +++ b/src/util/inc/tskiplist.h @@ -54,7 +54,7 @@ typedef struct SSkipListNode { #define SL_GET_NODE_DATA(n) ((char*)(n) + SL_NODE_HEADER_SIZE((n)->level)) #define SL_GET_NODE_KEY(s, n) ((s)->keyFn(SL_GET_NODE_DATA(n))) -#define SL_GET_NODE_LEVEL(n) *(int32_t *)((n)) +#define SL_GET_NODE_LEVEL(n) *(uint8_t *)((n)) /* * @version 0.3 -- GitLab