From b05a22e261bf2ed278d6b1a6afb3ade7ff4cacfc Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Sun, 15 Jul 2018 18:24:18 +0300 Subject: [PATCH] bugfix in sdsReqType creating 64bit sds headers on 32bit systems --- src/sds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sds.c b/src/sds.c index c4f43603..39ad595e 100644 --- a/src/sds.c +++ b/src/sds.c @@ -67,8 +67,10 @@ static inline char sdsReqType(size_t string_size) { #if (LONG_MAX == LLONG_MAX) if (string_size < 1ll<<32) return SDS_TYPE_32; -#endif return SDS_TYPE_64; +#else + return SDS_TYPE_32; +#endif } /* Create a new sds string with the content specified by the 'init' pointer