diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-08-19 23:27:11 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-08-19 23:27:11 +0200 |
commit | 80f103b68a667f443bb5459a1850b0f30122c45f (patch) | |
tree | a12e81145bd0d01651ee01cdabcbec48e0a7d9c5 /src | |
parent | 156d855787475deab27833219a188a4accf42558 (diff) | |
download | weechat-80f103b68a667f443bb5459a1850b0f30122c45f.zip |
core: use fixed-width integer for computing nick hash (issue #1394)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-nick.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui-nick.c b/src/gui/gui-nick.c index ccf8fe4d4..e2685dc5e 100644 --- a/src/gui/gui-nick.c +++ b/src/gui/gui-nick.c @@ -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]) |