summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2008-08-14 20:11:06 +0000
committerMaarten ter Huurne <maarten@treewalker.org>2008-08-14 20:11:06 +0000
commit231d7ffd03e62cb8b541ff4d411929e6760016b2 (patch)
tree2a11ee90d2efb3d6470395a2613b8941de5ca349 /Source/Core/DiscIO
parent870194db210af424f77fb694f8e8e534435d8585 (diff)
Fixed compile warnings: name shadowing and comparing signed to unsigned (2x).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@199 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/Src/Blob.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/Src/Blob.cpp b/Source/Core/DiscIO/Src/Blob.cpp
index 456f85f307..dcbf4d7a07 100644
--- a/Source/Core/DiscIO/Src/Blob.cpp
+++ b/Source/Core/DiscIO/Src/Blob.cpp
@@ -141,10 +141,10 @@ class PlainFileReader
}
- bool Read(u64 offset, u64 size, u8* out_ptr)
+ bool Read(u64 offset, u64 nbytes, u8* out_ptr)
{
fseek(file_, offset, SEEK_SET);
- fread(out_ptr, size, 1, file_);
+ fread(out_ptr, nbytes, 1, file_);
return(true);
}
};
@@ -296,7 +296,7 @@ class CompressedBlobReader
z.avail_out = header.block_size;
inflateInit(&z);
int status = inflate(&z, Z_FULL_FLUSH);
- int uncomp_size = header.block_size - z.avail_out;
+ u32 uncomp_size = header.block_size - z.avail_out;
if (status != Z_STREAM_END)
{
@@ -338,7 +338,7 @@ class CompressedBlobReader
return(false);
}
- int toCopy = header.block_size - positionInBlock;
+ u32 toCopy = header.block_size - positionInBlock;
if (toCopy >= remain)
{