remove warning about signed/unsigned
[xonotic/darkplaces.git] / 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;