summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornot-a-robot <not-a-robot@rediger.net>2016-06-20 11:37:14 +0200
committerGitHub <noreply@github.com>2016-06-20 11:37:14 +0200
commit847f3fe5c7fd335aa66ed23e6aff47bf4c12e0aa (patch)
treeac4dd2da2e95849c82f68985172c431a317a8de0
parentef372ed2f09ed1996e27a21d3a33ca7ff922ba0f (diff)
parentf5b32e24741f54ee7b064b05fea2c766aaa1123f (diff)
Auto merge of #428 - avatli:patch-1, r=badboy
Update sds.h Fixing sds.h for building hiredis in cpp project
-rw-r--r--sds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sds.h b/sds.h
index 394f8b5..13be75a 100644
--- a/sds.h
+++ b/sds.h
@@ -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)