From c34d522bb7705fb4ba97639f5d4b62b21ff82e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 22 Jun 2024 10:21:00 +0200 Subject: [PATCH] core: fix cast of pointer to unsigned long long This fixes a warning displayed by the gcc compiler. --- src/core/core-hashtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core-hashtable.c b/src/core/core-hashtable.c index 29ad2ca34..59574e882 100644 --- a/src/core/core-hashtable.c +++ b/src/core/core-hashtable.c @@ -115,7 +115,7 @@ hashtable_hash_key_default_cb (struct t_hashtable *hashtable, const void *key) return hashtable_hash_key_djb2 ((const char *)key); break; case HASHTABLE_POINTER: - return (unsigned long long)key; + return (unsigned long long)((unsigned long)((void *)key)); case HASHTABLE_BUFFER: break; case HASHTABLE_TIME: