diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:56:53 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:56:53 +0100 |
| commit | 0392e6d7c5b486d1af72742b7df5ec398af0aa04 (patch) | |
| tree | 668d1cf85de35de5d80a79908d607725bf2d9993 | |
| parent | eba25cd4f0f002c98f2bcc947bb44b01bdd56725 (diff) | |
fix hashmap compare
| -rw-r--r-- | src/hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -31,7 +31,7 @@ inline i32 wayc_hashentry_compare(const void *a, const void *b, void *udata) { const hashentry_s<K, V> *entry_a = (const hashentry_s<K, V> *)a; const hashentry_s<K, V> *entry_b = (const hashentry_s<K, V> *)b; - return memcmp(&entry_a->key, &entry_b->key, sizeof(K)) == 0; + return memcmp(&entry_a->key, &entry_b->key, sizeof(K)); } template <typename K, typename V> struct hashmap_s { |
