1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

core: use fixed-width integer for computing nick hash (issue #1394)

This commit is contained in:
Sébastien Helleu
2019-08-19 23:27:11 +02:00
parent 156d855787
commit 80f103b68a
9 changed files with 90 additions and 1 deletions
+2 -1
View File
@@ -24,6 +24,7 @@
#endif
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../core/weechat.h"
@@ -45,7 +46,7 @@
int
gui_nick_hash_color (const char *nickname)
{
unsigned long color;
uint64_t color;
const char *ptr_nick;
if (!nickname || !nickname[0])