Merge pull request #772 from lioncash/warn

core/video_core: Fix a few warnings when compiling on MSVC.
This commit is contained in:
bunnei 2015-05-18 08:08:49 -04:00
commit f0365f28c2
4 changed files with 10 additions and 10 deletions

View file

@ -28,7 +28,7 @@ SharedPtr<Process> Process::Create(std::string name, u64 program_id) {
}
void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) {
for (int i = 0; i < len; ++i) {
for (size_t i = 0; i < len; ++i) {
u32 descriptor = kernel_caps[i];
u32 type = descriptor >> 20;
@ -65,8 +65,8 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) {
AddressMapping mapping;
mapping.address = descriptor << 12;
mapping.size = (end_desc << 12) - mapping.address;
mapping.writable = descriptor & (1 << 20);
mapping.unk_flag = end_desc & (1 << 20);
mapping.writable = (descriptor & (1 << 20)) != 0;
mapping.unk_flag = (end_desc & (1 << 20)) != 0;
address_mappings.push_back(mapping);
} else if ((type & 0xFFF) == 0xFFE) { // 0x000F