mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
bugfix in sdsReqType creating 64bit sds headers on 32bit systems
This commit is contained in:
parent
ab33bcd346
commit
b05a22e261
@ -67,8 +67,10 @@ static inline char sdsReqType(size_t string_size) {
|
|||||||
#if (LONG_MAX == LLONG_MAX)
|
#if (LONG_MAX == LLONG_MAX)
|
||||||
if (string_size < 1ll<<32)
|
if (string_size < 1ll<<32)
|
||||||
return SDS_TYPE_32;
|
return SDS_TYPE_32;
|
||||||
#endif
|
|
||||||
return SDS_TYPE_64;
|
return SDS_TYPE_64;
|
||||||
|
#else
|
||||||
|
return SDS_TYPE_32;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new sds string with the content specified by the 'init' pointer
|
/* Create a new sds string with the content specified by the 'init' pointer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user