From 984b8e7da00f3c3a21e84282e4afe298333ccecb Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 3 Aug 2018 18:55:01 +0200 Subject: [PATCH] Fix const cast issue for 'void *' pointer. --- m-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-core.h b/m-core.h index 4fb2bfb2..82622d00 100644 --- a/m-core.h +++ b/m-core.h @@ -1335,7 +1335,7 @@ */ #ifndef __cplusplus # define M_CONST_CAST(type, n) \ - (((union { type *ptr; const type *cptr; }){n}).cptr) + (((union { type *ptr; type const *cptr; }){n}).cptr) #else # define M_CONST_CAST(type, n) const_cast(n) #endif