diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-03 17:48:14 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-03 17:48:16 +0200 |
commit | f525da56e51094a743a6239e7468d0be96ad1a25 (patch) | |
tree | ca74c819791171030e191ee757c8c78b72e95135 /src/core/hle | |
parent | ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465) (diff) | |
download | yuzu-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')
-rw-r--r-- | src/core/hle/service/ldr/ldr.cpp | 5 |
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{}; |