summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-03 20:27:13 +0200
committerGitHub <noreply@github.com>2020-08-03 20:27:13 +0200
commit9808f244ccce6e6f1a839ee3b4e3b73eedac82e9 (patch)
tree2021bb2e81fb7286d621b4aef1e16ee051ae658f /src/core/hle
parentMerge pull request #4468 from lioncash/regcache (diff)
parentservice/ldr: Resolve sign mismatch warnings (diff)
downloadyuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.tar
yuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.tar.gz
yuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.tar.bz2
yuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.tar.lz
yuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.tar.xz
yuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.tar.zst
yuzu-9808f244ccce6e6f1a839ee3b4e3b73eedac82e9.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index 64a526b9e..d8cd10e31 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -310,7 +310,7 @@ public:
ResultVal<VAddr> MapProcessCodeMemory(Kernel::Process* process, VAddr baseAddress,
u64 size) const {
- for (int retry{}; retry < MAXIMUM_MAP_RETRIES; retry++) {
+ for (std::size_t retry = 0; retry < MAXIMUM_MAP_RETRIES; retry++) {
auto& page_table{process->PageTable()};
const VAddr addr{GetRandomMapRegion(page_table, size)};
const ResultCode result{page_table.MapProcessCodeMemory(addr, baseAddress, size)};
@@ -331,8 +331,7 @@ public:
ResultVal<VAddr> MapNro(Kernel::Process* process, VAddr nro_addr, std::size_t nro_size,
VAddr bss_addr, std::size_t bss_size, std::size_t size) const {
-
- for (int retry{}; retry < MAXIMUM_MAP_RETRIES; retry++) {
+ for (std::size_t retry = 0; retry < MAXIMUM_MAP_RETRIES; retry++) {
auto& page_table{process->PageTable()};
VAddr addr{};