summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hashmap.c b/hashmap.c
index 2102db8b26..5a993b6e47 100644
--- a/hashmap.c
+++ b/hashmap.c
@@ -217,7 +217,7 @@ int hashmap_put(Hashmap *h, const void *key, void *value) {
link_entry(h, e, hash);
- return 0;
+ return 1;
}
int hashmap_replace(Hashmap *h, const void *key, void *value) {