diff options
| author | tylov <[email protected]> | 2023-07-10 10:53:30 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-10 10:53:30 +0200 |
| commit | 6fe1ec0e0e3dbce71797873f71a5f306b046319f (patch) | |
| tree | 329869548de3cc19c4137f4632761af3fa8756da /include/stc/cbox.h | |
| parent | be5864d5f658d544ad5c2af9f1c5b37b4d96bde8 (diff) | |
| download | STC-modified-6fe1ec0e0e3dbce71797873f71a5f306b046319f.tar.gz STC-modified-6fe1ec0e0e3dbce71797873f71a5f306b046319f.zip | |
- Fixed meta-programming bug in carc and cbox hash function def (regression).
- Reverted to allow static linking of cstr and csview. Still defaults to shared linking + inlines.
Diffstat (limited to 'include/stc/cbox.h')
| -rw-r--r-- | include/stc/cbox.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cbox.h b/include/stc/cbox.h index c8d919b2..86d5a6a6 100644 --- a/include/stc/cbox.h +++ b/include/stc/cbox.h @@ -196,7 +196,7 @@ STC_INLINE void _cx_MEMB(_assign)(_cx_Self* self, _cx_Self* moved) { { return i_hash(rx); } STC_INLINE uint64_t _cx_MEMB(_hash)(const _cx_Self* self) - { return i_hash(self->get); } + { _cx_raw rx = i_keyto(self->get); return i_hash(&rx); } #else STC_INLINE uint64_t _cx_MEMB(_raw_hash)(const _cx_raw* rx) { return c_default_hash(&rx); } |
