diff options
| author | Tyge Løvset <[email protected]> | 2021-03-07 22:28:32 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-03-07 22:28:32 +0100 |
| commit | cbcee23091bf58971de8f94adc54e1406177bda5 (patch) | |
| tree | 90f8238a371e07b4bfbe6fd00bd35b70a949dc7e /examples | |
| parent | 15dcc16cac8f5353d657fe6511eb1a01be347fa0 (diff) | |
| download | STC-modified-cbcee23091bf58971de8f94adc54e1406177bda5.tar.gz STC-modified-cbcee23091bf58971de8f94adc54e1406177bda5.zip | |
Corrected more constness.
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; \
|
