summaryrefslogtreecommitdiff
path: root/deps/hiredis/sds.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/hiredis/sds.h')
-rw-r--r--deps/hiredis/sds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/hiredis/sds.h b/deps/hiredis/sds.h
index 394f8b52e..13be75a9f 100644
--- a/deps/hiredis/sds.h
+++ b/deps/hiredis/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)