diff options
Diffstat (limited to 'src')
| -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 { |
