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:
+2
-1
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user