From e764723832b1ce60f8c1720b6676d5622bca436e Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Wed, 27 Aug 2008 16:12:05 +0000 Subject: Fixed warnings about comparison between signed and unsigned integer expressions. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@366 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/ChunkFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/Src/ChunkFile.cpp') diff --git a/Source/Core/Common/Src/ChunkFile.cpp b/Source/Core/Common/Src/ChunkFile.cpp index 48f4498fef..849f692631 100644 --- a/Source/Core/Common/Src/ChunkFile.cpp +++ b/Source/Core/Common/Src/ChunkFile.cpp @@ -89,7 +89,7 @@ bool ChunkFile::Do(void *ptr, int size) //let's get into the business bool ChunkFile::Descend(const char *cid) { - int id = *((int*)cid); + unsigned int id = *reinterpret_cast(cid); if (mode == MODE_READ) { bool found = false; @@ -100,7 +100,7 @@ bool ChunkFile::Descend(const char *cid) stack[stack_ptr].parentStartLocation = startPos; stack[stack_ptr].parentEOF = eof; - int firstID = 0; + unsigned int firstID = 0; //let's search through children.. while (ftell(f) < eof) { -- cgit v1.2.3