]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
fixed a bunch of signed/unsigned mismatch warnings in newer gcc versions (mostly...
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index 4c7aa0f6dd26517b7497d0b2a8d7f0b9c80e52d9..c1615d4c4f3c31c9ac9e8115153a78350e023787 100644 (file)
--- a/image.c
+++ b/image.c
@@ -482,7 +482,7 @@ qbyte *LoadWAL (qbyte *f, int matchwidth, int matchheight)
        qbyte *image_rgba;
        const q2wal_t *inwal = (const void *)f;
 
-       if (fs_filesize < sizeof(q2wal_t))
+       if (fs_filesize < (int) sizeof(q2wal_t))
        {
                Con_Printf("LoadWAL: invalid WAL file\n");
                return NULL;
@@ -498,7 +498,7 @@ qbyte *LoadWAL (qbyte *f, int matchwidth, int matchheight)
        if ((matchwidth && image_width != matchwidth) || (matchheight && image_height != matchheight))
                return NULL;
 
-       if (fs_filesize < sizeof(q2wal_t) + LittleLong(inwal->offsets[0]) + image_width * image_height)
+       if ((int) fs_filesize < (int) sizeof(q2wal_t) + (int) LittleLong(inwal->offsets[0]) + image_width * image_height)
        {
                Con_Printf("LoadWAL: invalid WAL file\n");
                return NULL;