summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cmap.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-19 10:13:36 +0100
committerTyge Løvset <[email protected]>2022-12-19 10:13:36 +0100
commit6167fa5e361b2954440594cb693f25f643eb9e0a (patch)
tree4e30a01b7274fcc4bedc24d442625d8187130d33 /include/stc/cmap.h
parent1d4ad83d6f3388982cb0aeadbc9815b4776df504 (diff)
downloadSTC-modified-6167fa5e361b2954440594cb693f25f643eb9e0a.tar.gz
STC-modified-6167fa5e361b2954440594cb693f25f643eb9e0a.zip
Some "internal" macros in ccommon.h made all caps.
Diffstat (limited to 'include/stc/cmap.h')
-rw-r--r--include/stc/cmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h
index dabb1138..b0793ce5 100644
--- a/include/stc/cmap.h
+++ b/include/stc/cmap.h
@@ -338,7 +338,7 @@ STC_DEF chash_bucket_t
_cx_memb(_bucket_)(const _cx_self* self, const _cx_rawkey* rkeyptr) {
const uint64_t _hash = i_hash_functor(self, rkeyptr);
i_size _cap = self->bucket_count;
- chash_bucket_t b = {c_paste(fastrange_,_i_expandby)(_hash, _cap), (uint8_t)(_hash | 0x80)};
+ chash_bucket_t b = {c_PASTE(fastrange_,_i_expandby)(_hash, _cap), (uint8_t)(_hash | 0x80)};
const uint8_t* _hx = self->_hashx;
while (_hx[b.idx]) {
if (_hx[b.idx] == b.hx) {
@@ -431,7 +431,7 @@ _cx_memb(_erase_entry)(_cx_self* self, _cx_value* _val) {
if (! _hashx[j])
break;
const _cx_rawkey _raw = i_keyto(_i_keyref(_slot + j));
- k = (i_size)c_paste(fastrange_,_i_expandby)(i_hash_functor(self, (&_raw)), _cap);
+ k = (i_size)c_PASTE(fastrange_,_i_expandby)(i_hash_functor(self, (&_raw)), _cap);
if ((j < i) ^ (k <= i) ^ (k > j)) /* is k outside (i, j]? */
_slot[i] = _slot[j], _hashx[i] = _hashx[j], i = j;
}