remove warning about signed/unsigned
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 5 Nov 2008 16:35:24 +0000 (16:35 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 5 Nov 2008 16:35:24 +0000 (16:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8547 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index c83273e..12dfc31 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -472,7 +472,7 @@ int PK3_BuildFileList (pack_t *pack, const pk3_endOfCentralDir_t *eocd)
        // Load the central directory in memory
        central_dir = (unsigned char *)Mem_Alloc (tempmempool, eocd->cdir_size);
        lseek (pack->handle, eocd->cdir_offset, SEEK_SET);
-       if(read (pack->handle, central_dir, eocd->cdir_size) != eocd->cdir_size)
+       if(read (pack->handle, central_dir, eocd->cdir_size) != (ssize_t) eocd->cdir_size)
        {
                Mem_Free (central_dir);
                return -1;