1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

core: fix cast of pointer to unsigned long long

This fixes a warning displayed by the gcc compiler.
This commit is contained in:
Sébastien Helleu
2024-06-22 10:21:00 +02:00
parent 2a6b16d1de
commit c34d522bb7
+1 -1
View File
@@ -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: