]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - hash.c
Some fixes
[xonotic/gmqcc.git] / hash.c
diff --git a/hash.c b/hash.c
index 41d77bf9e31e11a6fe1b8685cec7c0b826d7db6a..01a0d924867e17a3f1a64631891e2980c39f1c78 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -314,12 +314,12 @@ static ASAN_DISABLE size_t hash_strlen(const char *key) {
     }
 
     VALGRIND_MAKE_MEM_DEFINED(s, STRLEN_ALIGN);
-    for (w = (const void *)s; !STRLEN_HASZERO(*w); w++) {
+    for (w = (const size_t *)s; !STRLEN_HASZERO(*w); w++) {
         /* Make the next word legal to access */
         VALGRIND_MAKE_MEM_DEFINED(w + STRLEN_ALIGN, STRLEN_ALIGN);
     }
 
-    for (s = (const void *)w; *s; s++);
+    for (s = (const char *)w; *s; s++);
 
     /* It's not legal to access this area anymore */
     VALGRIND_MAKE_MEM_NOACCESS(s + 1, STRLEN_ALIGN);