]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
a fs_offset_t is a fs_offset_t is a fs_offset_t is a fs_offset_t and not a long
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Dec 2007 10:16:04 +0000 (10:16 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Dec 2007 10:16:04 +0000 (10:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7829 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 8f66fe884efe43babe3c4fa69d18fe18d0506c22..72475b697883d75bad6912f8205fd4b881ddd109 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -2169,7 +2169,7 @@ int FS_Seek (qfile_t* file, fs_offset_t offset, int whence)
                default:
                        return -1;
        }
-       if (offset < 0 || offset > (long) file->real_length)
+       if (offset < 0 || offset > file->real_length)
                return -1;
 
        // If we have the data in our read buffer, we don't need to actually seek