]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
added a 64bif fs_offset_t type to clean up most of the mess
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index 6af0ee2a1689d04d340782af429029a5c8f9c601..1c2af789c08d237f193845880108a3cdf1f22877 100644 (file)
--- a/image.c
+++ b/image.c
@@ -568,7 +568,7 @@ qbyte *LoadLMP (const qbyte *f, int matchwidth, int matchheight, qboolean loadAs
        if ((matchwidth && image_width != matchwidth) || (matchheight && image_height != matchheight))
                return NULL;
 
-       if (fs_filesize < (size_t)(8 + image_width * image_height))
+       if (fs_filesize < (fs_offset_t)(8 + image_width * image_height))
        {
                Con_Print("LoadLMP: invalid LMP file\n");
                return NULL;