From 72edb9426b1d5ba6458f2547bbc489bc5ebeeedd 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 c4f43603d..39ad595ed 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