From: Dale Weiler Date: Thu, 20 Dec 2012 08:19:43 +0000 (+0000) Subject: Another fix X-Git-Tag: 0.1.9~29 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=9f742271b1224c29b25f21fd9680b9031edf0b92 Another fix --- diff --git a/gmqcc.h b/gmqcc.h index ee9853e..234aaa9 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -134,11 +134,7 @@ # define GMQCC_NORETURN #endif -/* - * stdint.h and inttypes.h -less subset - * for systems that don't have it, which we must - * assume is all systems. (int8_t not required) - */ +/* no stdint.h in < C99 */ #if __STDC_VERSION__ < 199901L # if CHAR_MIN == -128 typedef unsigned char uint8_t; /* same as below */ diff --git a/util.c b/util.c index 2ad2880..c3d3d4f 100644 --- a/util.c +++ b/util.c @@ -534,7 +534,7 @@ typedef struct hash_node_t { */ #ifdef __x86_64__ GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, register size_t seed) { - const uint64_t mix = 0xC6A4A7935BD1E995; + const uint64_t mix = 0xC6A4A7935BD1E995UL; const int rot = 47; size_t size = strlen(key); uint64_t hash = seed ^ (size - mix);