diff options
author | Lioncash <mathew1800@gmail.com> | 2015-05-14 18:59:12 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-05-14 18:59:14 +0200 |
commit | 150e700729876387fad6e3cb439d0ca17f30c4aa (patch) | |
tree | 3e2091607d95a9f7cd4b26804d299ec532a700e6 /src | |
parent | dyncom: Removed irrelevant log. (diff) | |
download | yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.tar yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.tar.gz yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.tar.bz2 yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.tar.lz yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.tar.xz yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.tar.zst yuzu-150e700729876387fad6e3cb439d0ca17f30c4aa.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 1e439db9e..97249adfc 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -27,7 +27,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; @@ -64,8 +64,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 |