We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3603132 commit 15b5669Copy full SHA for 15b5669
src/object.c
@@ -549,7 +549,7 @@ robj *tryObjectEncoding(robj *o) {
549
* Note that we are sure that a string larger than 21 chars is not
550
* representable as a 32 nor 64 bit integer. */
551
// 对字符串进行检查
552
- // 只对长度大于 21 字节并且可以被解释为整数的字符串进行编码
+ // 只对长度小于或等于 21 字节,并且可以被解释为整数的字符串进行编码
553
len = sdslen(s);
554
if (len <= 21 && string2l(s,len,&value)) {
555
/* This object is encodable as a long. Try to use a shared object.
0 commit comments