Fix const cast issue for 'void *' pointer.

This commit is contained in:
Patrick Pelissier committed 2018-08-03 18:55:01 +02:00
1 parent aba1ac1646
commit 984b8e7da0
1 file changed
+1 -1
+1 -1
View File
@@ -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<const type*>(n)
#endif