]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - stat.c
Make it compile in visual studio again, without warnings.
[xonotic/gmqcc.git] / stat.c
diff --git a/stat.c b/stat.c
index ffb5b227f26283b41add9cb27aefee081fa94c8c..7a2d195b6ba2e3a2d75daa6ed322076aad4f2836 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -412,7 +412,7 @@ GMQCC_INLINE size_t util_hthash(hash_table_t *ht, const char *key) {
     uint32_t k;
     uint32_t h = 0x1EF0 ^ len;
 
-    for (i = -block; i; i++) {
+    for (i = -((int)block); i; i++) {
         k  = blocks[i];
         k *= mask1;
         k  = GMQCC_ROTL32(k, 15);