Skip to content

Commit 15b5669

Browse files
committed
fix
1 parent 3603132 commit 15b5669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ robj *tryObjectEncoding(robj *o) {
549549
* Note that we are sure that a string larger than 21 chars is not
550550
* representable as a 32 nor 64 bit integer. */
551551
// 对字符串进行检查
552-
// 只对长度大于 21 字节并且可以被解释为整数的字符串进行编码
552+
// 只对长度小于或等于 21 字节,并且可以被解释为整数的字符串进行编码
553553
len = sdslen(s);
554554
if (len <= 21 && string2l(s,len,&value)) {
555555
/* This object is encodable as a long. Try to use a shared object.

0 commit comments

Comments
 (0)