]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - util.c
Fix more warnings
[xonotic/gmqcc.git] / util.c
diff --git a/util.c b/util.c
index a900889e57b90f983d776c44326e02935d9eee7b..8b54251c76ed447e52c4b15f38b70b7888745c98 100644 (file)
--- a/util.c
+++ b/util.c
@@ -270,8 +270,8 @@ void util_endianswap(void *m, int s, int l) {
     if(*((char *)&s))
         return;
 
-    for(; w < l; w++) {
-        for(;  i < s << 1; i++) {
+    for(; w < (size_t)l; w++) {
+        for(;  i < (size_t)(s << 1); i++) {
             unsigned char *p = (unsigned char *)m+w*s;
             unsigned char  t = p[i];
             p[i]             = p[s-i-1];