diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/csmap_v1.h | 4 |
1 files changed, 2 insertions, 2 deletions
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* \
|
