Fix issue if given type is a T * = TYPE:

token pasting created const T *, which is not the same as
const TYPE = T * const
This commit is contained in:
Patrick Pelissier committed 2018-08-03 20:20:57 +02:00
1 parent 030510613c
commit 143a5fdf4f
9 files changed
+54 -54

No files matched your search

+2 -2
View File
@@ -180,7 +180,7 @@
} \
} \
\
static inline const type * \
static inline type const * \
M_C(name, _front)(prioqueue_t p) \
{ \
return M_C(name, _array_cget)(p->array, 0); \
@@ -263,7 +263,7 @@
M_C(name, _array_previous)(it); \
} \
\
static inline const type * \
static inline type const * \
M_C(name, _cref)(const it_t it) \
{ \
return M_C(name, _array_cref)(it); \