diff options
| author | Tyge Løvset <[email protected]> | 2023-01-05 17:49:51 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-05 17:49:51 +0100 |
| commit | a8a6b363ee13112219306b28a5c2f35203477a5a (patch) | |
| tree | 91792323412554fa72fb0e0de18998e00cff50da | |
| parent | e8c0cf85e8c8b38369cdaed301cf000c836e9c54 (diff) | |
| download | STC-modified-a8a6b363ee13112219306b28a5c2f35203477a5a.tar.gz STC-modified-a8a6b363ee13112219306b28a5c2f35203477a5a.zip | |
Added parenthesis around user macro arguments
| -rw-r--r-- | include/stc/carc.h | 6 | ||||
| -rw-r--r-- | include/stc/cbox.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h index a569a028..614af18e 100644 --- a/include/stc/carc.h +++ b/include/stc/carc.h @@ -176,7 +176,7 @@ STC_INLINE int _cx_memb(_raw_cmp)(const _cx_raw* rx, const _cx_raw* ry) STC_INLINE int _cx_memb(_cmp)(const _cx_self* x, const _cx_self* y) { _cx_raw rx = i_keyto(x->get), ry = i_keyto(y->get); - return i_cmp(&rx, &ry); + return i_cmp((&rx), (&ry)); } #endif @@ -186,7 +186,7 @@ STC_INLINE bool _cx_memb(_raw_eq)(const _cx_raw* rx, const _cx_raw* ry) STC_INLINE bool _cx_memb(_eq)(const _cx_self* x, const _cx_self* y) { _cx_raw rx = i_keyto(x->get), ry = i_keyto(y->get); - return i_eq(&rx, &ry); + return i_eq((&rx), (&ry)); } #endif @@ -195,7 +195,7 @@ STC_INLINE uint64_t _cx_memb(_raw_hash)(const _cx_raw* rx) { return i_hash(rx); } STC_INLINE uint64_t _cx_memb(_hash)(const _cx_self* x) - { _cx_raw rx = i_keyto(x->get); return i_hash(&rx); } + { _cx_raw rx = i_keyto(x->get); return i_hash((&rx)); } #endif #undef _i_atomic_inc diff --git a/include/stc/cbox.h b/include/stc/cbox.h index 3c239caa..95dfdf8f 100644 --- a/include/stc/cbox.h +++ b/include/stc/cbox.h @@ -137,7 +137,7 @@ STC_INLINE _cx_self _cx_memb(_from)(_cx_value val) if (!other.get) return other; _cx_self out = {c_ALLOC(i_key)}; - *out.get = i_keyclone(*other.get); + *out.get = i_keyclone((*other.get)); return out; } #endif // !i_no_clone @@ -162,7 +162,7 @@ STC_INLINE int _cx_memb(_raw_cmp)(const _cx_raw* rx, const _cx_raw* ry) STC_INLINE int _cx_memb(_cmp)(const _cx_self* x, const _cx_self* y) { _cx_raw rx = i_keyto(x->get), ry = i_keyto(y->get); - return i_cmp(&rx, &ry); + return i_cmp((&rx), (&ry)); } #endif @@ -172,7 +172,7 @@ STC_INLINE bool _cx_memb(_raw_eq)(const _cx_raw* rx, const _cx_raw* ry) STC_INLINE bool _cx_memb(_eq)(const _cx_self* x, const _cx_self* y) { _cx_raw rx = i_keyto(x->get), ry = i_keyto(y->get); - return i_eq(&rx, &ry); + return i_eq((&rx), (&ry)); } #endif @@ -181,7 +181,7 @@ STC_INLINE uint64_t _cx_memb(_raw_hash)(const _cx_raw* rx) { return i_hash(rx); } STC_INLINE uint64_t _cx_memb(_hash)(const _cx_self* x) - { _cx_raw rx = i_keyto(x->get); return i_hash(&rx); } + { _cx_raw rx = i_keyto(x->get); return i_hash((&rx)); } #endif #include "priv/template.h" |
