From c64285c9adcbe165287409fe6d10fa27ad70d1bf Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 25 Nov 2017 14:43:54 +0100 Subject: [PATCH] Replacing the void * cast to the real type cast to avoid compilation error on MacOSX --- rmutil/sds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmutil/sds.h b/rmutil/sds.h index 394f8b5..d6679fe 100644 --- a/rmutil/sds.h +++ b/rmutil/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)