From 1ee1a3fbe51b4ab469de81e50754b964ddca594c Mon Sep 17 00:00:00 2001 From: tielei <43289893@qq.com> Date: Mon, 18 Jul 2016 13:52:25 +0800 Subject: [PATCH] fix some comments --- src/object.c | 2 +- src/ziplist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.c b/src/object.c index ec886f1f6..29e56806e 100644 --- a/src/object.c +++ b/src/object.c @@ -100,7 +100,7 @@ robj *createEmbeddedStringObject(const char *ptr, size_t len) { * OBJ_ENCODING_EMBSTR_SIZE_LIMIT, otherwise the RAW encoding is * used. * - * The current limit of 39 is chosen so that the biggest string object + * The current limit of 44 is chosen so that the biggest string object * we allocate as EMBSTR will still fit into the 64 byte arena of jemalloc. */ #define OBJ_ENCODING_EMBSTR_SIZE_LIMIT 44 robj *createStringObject(const char *ptr, size_t len) { diff --git a/src/ziplist.c b/src/ziplist.c index 7428d30e9..c6af2a332 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -62,7 +62,7 @@ * Integer encoded as 24 bit signed (3 bytes). * |11111110| - 1 byte * Integer encoded as 8 bit signed (1 byte). - * |1111xxxx| - (with xxxx between 0000 and 1101) immediate 4 bit integer. + * |1111xxxx| - (with xxxx between 0001 and 1101) immediate 4 bit integer. * Unsigned integer from 0 to 12. The encoded value is actually from * 1 to 13 because 0000 and 1111 can not be used, so 1 should be * subtracted from the encoded 4 bit value to obtain the right value.