diff options
author | Ali Volkan ATLI <avatli@yahoo.com> | 2016-05-14 23:11:33 +0300 |
---|---|---|
committer | Ali Volkan ATLI <avatli@yahoo.com> | 2016-05-14 23:11:33 +0300 |
commit | f5b32e24741f54ee7b064b05fea2c766aaa1123f (patch) | |
tree | 02aae07f11a820c25826fe3c7a508e7d4a695cfb | |
parent | e30db1a3bea4ad464470dc22be9280c0ef58f4c1 (diff) |
Update sds.h
Fixing sds.h for building hiredis in cpp project
-rw-r--r-- | sds.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ struct __attribute__ ((__packed__)) sdshdr64 { #define SDS_TYPE_64 4 #define SDS_TYPE_MASK 7 #define SDS_TYPE_BITS 3 -#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T))); +#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T))); #define SDS_HDR(T,s) ((struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T)))) #define SDS_TYPE_5_LEN(f) ((f)>>SDS_TYPE_BITS) |