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 b9b70a02..c2489df4 100644 --- a/examples/csmap_v1.h +++ b/examples/csmap_v1.h @@ -270,13 +270,13 @@ int main(void) { }) \
\
STC_INLINE C##_##X##_value_t* \
- C##_##X##_front(C##_##X* self) { \
+ C##_##X##_front(const C##_##X* self) { \
C##_##X##_node_t *tn = self->root; \
while (tn->link[0]->level) tn = tn->link[0]; \
return &tn->value; \
} \
STC_INLINE C##_##X##_value_t* \
- C##_##X##_back(C##_##X* self) { \
+ C##_##X##_back(const C##_##X* self) { \
C##_##X##_node_t *tn = self->root; \
while (tn->link[1]->level) tn = tn->link[1]; \
return &tn->value; \
|
