summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-02-24 03:38:36 +0000
committerGlenn Rice <glennricster@gmail.com>2010-02-24 03:38:36 +0000
commit1d40b8a5ae2e64ed329f66e9da059cde9baf24fc (patch)
tree1dc8c263a83789cac1a2a6999d1370438570f0cd /Source/Core/DiscIO
parent3cc5d8ce6f31ffa26f7eb3f8db9de68cca9721e2 (diff)
Systematically eliminating compiler warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5117 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/Src/VolumeCreator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeCreator.cpp b/Source/Core/DiscIO/Src/VolumeCreator.cpp
index 60a277356a..3bf319e41c 100644
--- a/Source/Core/DiscIO/Src/VolumeCreator.cpp
+++ b/Source/Core/DiscIO/Src/VolumeCreator.cpp
@@ -150,7 +150,7 @@ IVolume* CreateVolumeFromCryptedWiiImage(IBlobReader& _rReader, u32 _PartitionGr
u64 PartitionsOffset = (u64)Reader.Read32(0x40000 + (_PartitionGroup * 8) + 4) << 2;
// Check if we're looking for a valid partition
- if (_VolumeNum != -1 && _VolumeNum > numPartitions)
+ if ((int)_VolumeNum != -1 && _VolumeNum > numPartitions)
return NULL;
#ifdef _WIN32
@@ -203,7 +203,7 @@ IVolume* CreateVolumeFromCryptedWiiImage(IBlobReader& _rReader, u32 _PartitionGr
AES_cbc_encrypt(SubKey, VolumeKey, 16, &AES_KEY, IV, AES_DECRYPT);
// -1 means the caller just wanted the partition with matching type
- if (_VolumeNum == -1 || i == _VolumeNum)
+ if ((int)_VolumeNum == -1 || i == _VolumeNum)
return new CVolumeWiiCrypted(&_rReader, rPartition.Offset + 0x20000, VolumeKey);
}
}