diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-22 13:41:48 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-22 13:41:48 +0100 |
| commit | e4cd519363547444be338ff087a559bb0490c5f1 (patch) | |
| tree | 36169fb4b34b3e8e802ab84907e8d6fd507d861f | |
| parent | a321f937fbe058aa4852e7a6868d4603fb7bfc64 (diff) | |
fixing critical bug
| -rw-r--r-- | cheesemap.c | 4 | ||||
| -rw-r--r-- | cheesemap.h | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/cheesemap.c b/cheesemap.c index df09296..bdaee94 100644 --- a/cheesemap.c +++ b/cheesemap.c @@ -249,9 +249,7 @@ static bool cm_raw_find(const struct cheesemap_raw* map, out_index)) return true; - bitmask_t empty_mask = cm_group_match_empty_or_deleted(group) ^ - cm_group_repeat(CM_CTRL_DELETED); - if (empty_mask != 0) return false; + if (cm_group_match_empty(group) != 0) return false; cm_sequence_next(&seq, map->bucket_mask); } diff --git a/cheesemap.h b/cheesemap.h index 9f8f45c..423ec17 100644 --- a/cheesemap.h +++ b/cheesemap.h @@ -1,6 +1,10 @@ #ifndef CHEESEMAP #define CHEESEMAP +#ifdef __cplusplus +extern "C" { +#endif + //////////////////////////////// // options and includes // @@ -155,4 +159,9 @@ void cm_raw_iter_init(struct cheesemap_raw_iter* iter, bool cheesemap_raw_iter_next(struct cheesemap_raw_iter* iter, uintptr_t entry_size, uintptr_t* out_index); + +#ifdef __cplusplus +} +#endif + #endif |
