From fcee8f662390f150de5b007e52bd3e013f621bc8 Mon Sep 17 00:00:00 2001 From: Moti Cohen Date: Tue, 24 Dec 2024 09:23:48 +0200 Subject: [PATCH] Fix LFU Parsing for Values Larger Than 127 --- src/lib/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/parser.c b/src/lib/parser.c index fda3707..f2ccc2a 100644 --- a/src/lib/parser.c +++ b/src/lib/parser.c @@ -1571,7 +1571,7 @@ RdbStatus elementFreq(RdbParser *p) { /*** ENTER SAFE STATE ***/ - p->elmCtx.key.info.lfuFreq = *((int8_t *) binfoFreq->ref); + p->elmCtx.key.info.lfuFreq = *((uint8_t *) binfoFreq->ref); return nextParsingElement(p, PE_NEXT_RDB_TYPE); }