summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ldr
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-03 17:48:14 +0200
committerLioncash <mathew1800@gmail.com>2020-08-03 17:48:16 +0200
commitf525da56e51094a743a6239e7468d0be96ad1a25 (patch)
treeca74c819791171030e191ee757c8c78b72e95135 /src/core/hle/service/ldr
parentipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465) (diff)
downloadyuzu-f525da56e51094a743a6239e7468d0be96ad1a25.tar
yuzu-f525da56e51094a743a6239e7468d0be96ad1a25.tar.gz
yuzu-f525da56e51094a743a6239e7468d0be96ad1a25.tar.bz2
yuzu-f525da56e51094a743a6239e7468d0be96ad1a25.tar.lz
yuzu-f525da56e51094a743a6239e7468d0be96ad1a25.tar.xz
yuzu-f525da56e51094a743a6239e7468d0be96ad1a25.tar.zst
yuzu-f525da56e51094a743a6239e7468d0be96ad1a25.zip
Diffstat (limited to 'src/core/hle/service/ldr')
-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{};