From 15dcc16cac8f5353d657fe6511eb1a01be347fa0 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 6 Mar 2021 12:39:40 +0100 Subject: Fixed some const-ness with begin/end methods. --- examples/csmap_v1.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/csmap_v1.h b/examples/csmap_v1.h index b209e25b..b9b70a02 100644 --- a/examples/csmap_v1.h +++ b/examples/csmap_v1.h @@ -286,12 +286,12 @@ int main(void) { C##_##X##_next(C##_##X##_iter_t* it); \ \ STC_INLINE C##_##X##_iter_t \ - C##_##X##_begin(C##_##X* self) { \ + C##_##X##_begin(const C##_##X* self) { \ C##_##X##_iter_t it = {NULL, 0, self->root}; \ C##_##X##_next(&it); return it; \ } \ STC_INLINE C##_##X##_iter_t \ - C##_##X##_end(C##_##X* self) {\ + C##_##X##_end(const C##_##X* self) {\ C##_##X##_iter_t it = {NULL}; return it; \ } \ STC_INLINE C##_##X##_mapped_t* \ -- cgit v1.2.3