diff options
| author | Tyge Løvset <[email protected]> | 2021-12-20 19:52:51 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-12-20 19:52:51 +0100 |
| commit | e38e9164d816bf1ee1f1dcc40f69ac158562fb1a (patch) | |
| tree | 23bbec187b488730964ab538d401ded9ab319169 /include/stc/cstack.h | |
| parent | 0c3d711c2541aebe9a44fecb732e096bed14f72c (diff) | |
| download | STC-modified-e38e9164d816bf1ee1f1dcc40f69ac158562fb1a.tar.gz STC-modified-e38e9164d816bf1ee1f1dcc40f69ac158562fb1a.zip | |
Some small addition to constness in API. Updated docs.
Diffstat (limited to 'include/stc/cstack.h')
| -rw-r--r-- | include/stc/cstack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h index d43afe29..fa74494d 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -91,7 +91,7 @@ STC_INLINE _cx_value* _cx_memb(_push)(_cx_self* self, _cx_value val) { *vp = val; return vp;
}
-STC_INLINE _cx_value* _cx_memb(_at)(const _cx_self* self, size_t idx)
+STC_INLINE const _cx_value* _cx_memb(_at)(const _cx_self* self, size_t idx)
{ assert(idx < self->size); return self->data + idx; }
#if !c_option(c_no_clone)
|
