diff options
| author | Tyge Løvset <[email protected]> | 2021-03-10 23:20:20 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-03-10 23:20:20 +0100 |
| commit | 6cc5a8a96304eb270babbb10161c560dcded3fe3 (patch) | |
| tree | 65d98f2f387ec45814fa6f79cab2556b0cf99e4f /stc | |
| parent | cbcee23091bf58971de8f94adc54e1406177bda5 (diff) | |
| download | STC-modified-6cc5a8a96304eb270babbb10161c560dcded3fe3.tar.gz STC-modified-6cc5a8a96304eb270babbb10161c560dcded3fe3.zip | |
constness i stack top.
Diffstat (limited to 'stc')
| -rw-r--r-- | stc/cstack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stc/cstack.h b/stc/cstack.h index bc76cda2..849f8564 100644 --- a/stc/cstack.h +++ b/stc/cstack.h @@ -63,7 +63,7 @@ STC_INLINE bool \
cstack_##X##_empty(cstack_##X st) {return ctype##_empty(st);} \
STC_INLINE cstack_##X##_value_t* \
- cstack_##X##_top(cstack_##X* self) {return ctype##_back(self);} \
+ cstack_##X##_top(const cstack_##X* self) {return ctype##_back(self);} \
STC_INLINE void \
cstack_##X##_pop(cstack_##X* self) {ctype##_pop_back(self);} \
STC_INLINE void \
|
