From: divverent Date: Thu, 20 Dec 2007 10:16:04 +0000 (+0000) Subject: a fs_offset_t is a fs_offset_t is a fs_offset_t is a fs_offset_t and not a long X-Git-Tag: xonotic-v0.1.0preview~2662 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a72c54fea9e67245d3213c7000d6911dada5e760;p=xonotic%2Fdarkplaces.git a fs_offset_t is a fs_offset_t is a fs_offset_t is a fs_offset_t and not a long git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7829 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index 8f66fe88..72475b69 100644 --- 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