From 2ef2dd12318a5e6fa254136f6d87fa89b25b33cf Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 8 Jul 2017 12:57:06 +0200 Subject: [PATCH] Add const to function definition. --- m-dict.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-dict.h b/m-dict.h index 8d6c6096..943bce3a 100644 --- a/m-dict.h +++ b/m-dict.h @@ -404,7 +404,7 @@ } \ \ static inline M_C3(dict_pair_,name,_t) * \ - M_C3(dict_, name, _ref)(dict_it_t it) \ + M_C3(dict_, name, _ref)(const dict_it_t it) \ { \ assert(it != NULL); \ /* NOTE: partially unsafe if the user modify the 'key'. */ \ @@ -1128,7 +1128,7 @@ typedef enum { \ /* FIXME: Wrong level of indirection compared to std dict? */ \ static inline M_C3(dict_pair_,name,_t) * \ - M_C3(dict_, name, _ref)(dict_it_t it) \ + M_C3(dict_, name, _ref)(const dict_it_t it) \ { \ assert (it != NULL); \ DICTI_OA_CONTRACT (it -> dict); \