浏览代码

rofs: Fixed compiler warnings.

Ryan C. Gordon 2 月之前
父节点
当前提交
c19d434f6a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/physfs_archiver_rofs.c

+ 2 - 2
src/physfs_archiver_rofs.c

@@ -206,7 +206,7 @@ static int rofs_depack_block(ROFSfileinfo *finfo, void *buffer,
 {
 	ROFSentry *entry = finfo->entry;
 	PHYSFS_uint8 *dstBuffer = (PHYSFS_uint8 *) buffer;
-	int dstIndex = 0;
+	PHYSFS_uint32 dstIndex = 0;
 
 	if (!finfo->depack.lzss_dict) {
 		return(0);
@@ -660,7 +660,7 @@ static int rofs_load_header(ROFSinfo *info)
 static int rofs_load_entries(ROFSinfo *info)
 {
     PHYSFS_Io *io = info->io;
-	int i;
+	PHYSFS_uint32 i;
 
 	BAIL_IF_ERRPASS(!io->seek(io, sizeof(rofs_id)), 0);
 	BAIL_IF_ERRPASS(!rofs_load_header(info), 0);