diff options
| author | Tyge Løvset <[email protected]> | 2022-04-10 11:24:09 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-10 11:24:09 +0200 |
| commit | 51daf09029820be6762a7a1224dc256465be44e7 (patch) | |
| tree | bc1e4195f2746cd9de7e6e53d3d31b32f5bf854e /include/stc/cpque.h | |
| parent | 17e620fe3b3c42134a1139245c6590816c1ca6bf (diff) | |
| download | STC-modified-51daf09029820be6762a7a1224dc256465be44e7.tar.gz STC-modified-51daf09029820be6762a7a1224dc256465be44e7.zip | |
Parenthesized calls to i_drop(x) - can be defined as macro without parenthesis around arg.
Diffstat (limited to 'include/stc/cpque.h')
| -rw-r--r-- | include/stc/cpque.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h index 3fa561ed..f862b7e4 100644 --- a/include/stc/cpque.h +++ b/include/stc/cpque.h @@ -67,7 +67,7 @@ STC_INLINE _cx_self _cx_memb(_with_size)(const size_t size, i_val null) { STC_INLINE void _cx_memb(_clear)(_cx_self* self) {
size_t i = self->size; self->size = 0;
- while (i--) { i_valdrop(&self->data[i]); }
+ while (i--) { i_valdrop((self->data + i)); }
}
STC_INLINE void _cx_memb(_drop)(_cx_self* self)
@@ -135,7 +135,7 @@ STC_DEF _cx_self _cx_memb(_clone)(_cx_self q) { STC_DEF void
_cx_memb(_erase_at)(_cx_self* self, const size_t idx) {
- i_valdrop(&self->data[idx]);
+ i_valdrop((self->data + idx));
const size_t n = --self->size;
self->data[idx] = self->data[n];
_cx_memb(_sift_down_)(self->data - 1, idx + 1, n);
|
