mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 09:22:59 +00:00
service/ldr: Resolve sign mismatch warnings
We were performing an int < size_t comparison. We can just correct the type of the induction variable.
This commit is contained in:
parent
9b75481755
commit
f525da56e5
|
@ -310,7 +310,7 @@ public:
|
||||||
|
|
||||||
ResultVal<VAddr> MapProcessCodeMemory(Kernel::Process* process, VAddr baseAddress,
|
ResultVal<VAddr> MapProcessCodeMemory(Kernel::Process* process, VAddr baseAddress,
|
||||||
u64 size) const {
|
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()};
|
auto& page_table{process->PageTable()};
|
||||||
const VAddr addr{GetRandomMapRegion(page_table, size)};
|
const VAddr addr{GetRandomMapRegion(page_table, size)};
|
||||||
const ResultCode result{page_table.MapProcessCodeMemory(addr, baseAddress, 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,
|
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 {
|
VAddr bss_addr, std::size_t bss_size, std::size_t size) const {
|
||||||
|
for (std::size_t retry = 0; retry < MAXIMUM_MAP_RETRIES; retry++) {
|
||||||
for (int retry{}; retry < MAXIMUM_MAP_RETRIES; retry++) {
|
|
||||||
auto& page_table{process->PageTable()};
|
auto& page_table{process->PageTable()};
|
||||||
VAddr addr{};
|
VAddr addr{};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue