summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-03-07 22:28:32 +0100
committerTyge Løvset <[email protected]>2021-03-07 22:28:32 +0100
commitcbcee23091bf58971de8f94adc54e1406177bda5 (patch)
tree90f8238a371e07b4bfbe6fd00bd35b70a949dc7e /examples
parent15dcc16cac8f5353d657fe6511eb1a01be347fa0 (diff)
downloadSTC-modified-cbcee23091bf58971de8f94adc54e1406177bda5.tar.gz
STC-modified-cbcee23091bf58971de8f94adc54e1406177bda5.zip
Corrected more constness.
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 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; \