minor fixes - mainly signalModifiedKey, and GEORADIUS

This commit is contained in:
oranagra
2016-05-09 09:12:38 +03:00
parent 3b644e82b0
commit 9682b616a2
6 changed files with 19 additions and 16 deletions

View File

@ -55,13 +55,13 @@ static inline int sdsHdrSize(char type) {
}
static inline char sdsReqType(size_t string_size) {
if (string_size < 32)
if (string_size < 1<<5)
return SDS_TYPE_5;
if (string_size < 0xff)
if (string_size < 1<<8)
return SDS_TYPE_8;
if (string_size < 0xffff)
if (string_size < 1<<16)
return SDS_TYPE_16;
if (string_size < 0xffffffff)
if (string_size < 1ll<<32)
return SDS_TYPE_32;
return SDS_TYPE_64;
}