]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - util.c
Temporarily fix noreturn bug by creating an actual dummy return instruction after...
[xonotic/gmqcc.git] / util.c
diff --git a/util.c b/util.c
index 4a8b164b2af1d913f74299381bf77d70718b5d73..aac66aa572ec1142f8f9e8ba0be94b284f0cfb35 100644 (file)
--- 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, size_t seed) {
-    const uint64_t       mix   = 0xC6A4A7935BD1E995UL;
+    const uint64_t       mix   = 0xC6A4A7935BD1E995;
     const int            rot   = 47;
     size_t               size  = strlen(key);
     uint64_t             hash  = seed ^ (size - mix);
@@ -615,7 +615,7 @@ GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, size_t
 /* we use the crc table as seeds for the murmur hash :P */
 size_t util_hthash(hash_table_t *ht, const char *key) {
     static   size_t seed = 0;
-    register size_t hash = util_hthashfunc(ht, key, util_crc32_table[seed++]);
+    register size_t hash = util_hthashfunc(ht, key, util_crc32_table[seed]);
 
     /* reset seed */
     if (seed >= sizeof(util_crc32_table) / sizeof(*util_crc32_table))