From 482e1631fa9485036e8ef49d45045963af147e22 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 19 May 2018 12:51:31 +0200 Subject: [PATCH] Remove warning in case of some kind of type (Famous problem of C not allowing to cast a T (*)[N] into a const T (*)[N]. --- m-algo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-algo.h b/m-algo.h index bb58ec18..b574b2f0 100644 --- a/m-algo.h +++ b/m-algo.h @@ -390,7 +390,7 @@ M_GET_IT_PREVIOUS cont_oplist (it2); \ while (!M_GET_IT_END_P cont_oplist (it2) \ && !(M_C3(name,sort_name,_cmp)(M_GET_IT_CREF cont_oplist (it2), \ - &x)) <= 0) { \ + M_CONST_CAST(type_t, &x))) <= 0) { \ memcpy(M_GET_IT_REF cont_oplist (it21), \ M_GET_IT_CREF cont_oplist (it2), sizeof (type_t) ); \ M_GET_IT_SET cont_oplist (it21, it2); \