summaryrefslogtreecommitdiff
path: root/main/astobj2.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/astobj2.c')
-rw-r--r--main/astobj2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astobj2.c b/main/astobj2.c
index a86e5271f..ad6dcb1a2 100644
--- a/main/astobj2.c
+++ b/main/astobj2.c
@@ -509,7 +509,7 @@ static struct bucket_list *internal_ao2_link(struct ao2_container *c, void *user
if (!p)
return NULL;
- i = c->hash_fn(user_data, OBJ_POINTER);
+ i = abs(c->hash_fn(user_data, OBJ_POINTER));
ao2_lock(c);
i %= c->n_buckets;