mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
Another fix
This commit is contained in:
parent
d7585a810a
commit
9f742271b1
2 changed files with 2 additions and 6 deletions
6
gmqcc.h
6
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 */
|
||||
|
|
2
util.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue