Another fix

This commit is contained in:
Dale Weiler 2012-12-20 08:19:43 +00:00
parent d7585a810a
commit 9f742271b1
2 changed files with 2 additions and 6 deletions

View file

@ -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 */

2
util.c
View file

@ -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);