summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.h b/src/hash.h
index 66ed5ac..61e290e 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -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 {