summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-03-06 12:39:40 +0100
committerTyge Løvset <[email protected]>2021-03-06 12:39:40 +0100
commit15dcc16cac8f5353d657fe6511eb1a01be347fa0 (patch)
tree4d50e2948c6f9bf18c95335feda7ae44147ebf1f /examples
parent7188a160ac084b65de07c26797fd74e29fd8b0b8 (diff)
downloadSTC-modified-15dcc16cac8f5353d657fe6511eb1a01be347fa0.tar.gz
STC-modified-15dcc16cac8f5353d657fe6511eb1a01be347fa0.zip
Fixed some const-ness with begin/end methods.
Diffstat (limited to 'examples')
-rw-r--r--examples/csmap_v1.h4
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* \