From f800b52172622b84aa8bdf09aa6cd522aade93be Mon Sep 17 00:00:00 2001 From: chenhui0212 Date: Thu, 18 Jun 2020 17:28:26 +0800 Subject: [PATCH] Fix comments in function raxLowWalk of listpack.c --- src/rax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rax.c b/src/rax.c index 7dcf04582..c8a1fb6b4 100644 --- a/src/rax.c +++ b/src/rax.c @@ -487,8 +487,8 @@ static inline size_t raxLowWalk(rax *rax, unsigned char *s, size_t len, raxNode if (h->iscompr) j = 0; /* Compressed node only child is at index 0. */ memcpy(&h,children+j,sizeof(h)); parentlink = children+j; - j = 0; /* If the new node is compressed and we do not - iterate again (since i == l) set the split + j = 0; /* If the new node is non compressed and we do not + iterate again (since i == len) set the split position to 0 to signal this node represents the searched key. */ }