diff options
author | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2021-05-03 13:36:21 +0100 |
---|---|---|
committer | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2021-05-03 13:40:44 +0100 |
commit | 2ff065e5eab38165b4f3380284f58bc8019d8712 (patch) | |
tree | f40ffe2564979b0a3d50942a893c0e7b72fdb5b6 /src/ARMJIT.cpp | |
parent | cc36f55b8ca18ea32a29ceaa96d5e9022b4af301 (diff) |
Fix some compiler warnings
Diffstat (limited to 'src/ARMJIT.cpp')
-rw-r--r-- | src/ARMJIT.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ARMJIT.cpp b/src/ARMJIT.cpp index b3dae1e..38e9ddc 100644 --- a/src/ARMJIT.cpp +++ b/src/ARMJIT.cpp @@ -262,7 +262,7 @@ template <bool Write, int ConsoleType> void SlowBlockTransfer9(u32 addr, u64* data, u32 num, ARMv5* cpu) { addr &= ~0x3; - for (int i = 0; i < num; i++) + for (u32 i = 0; i < num; i++) { if (Write) SlowWrite9<u32, ConsoleType>(addr, cpu, data[i]); @@ -276,7 +276,7 @@ template <bool Write, int ConsoleType> void SlowBlockTransfer7(u32 addr, u64* data, u32 num) { addr &= ~0x3; - for (int i = 0; i < num; i++) + for (u32 i = 0; i < num; i++) { if (Write) SlowWrite7<u32, ConsoleType>(addr, data[i]); @@ -667,7 +667,7 @@ void CompileBlock(ARM* cpu) if (i == 0 || translatedAddrRounded != addressRanges[numAddressRanges - 1]) { bool returning = false; - for (int j = 0; j < numAddressRanges; j++) + for (u32 j = 0; j < numAddressRanges; j++) { if (addressRanges[j] == translatedAddrRounded) { @@ -874,7 +874,7 @@ void CompileBlock(ARM* cpu) if (mayRestore && prevBlock->NumAddresses == numAddressRanges) { - for (int j = 0; j < numAddressRanges; j++) + for (u32 j = 0; j < numAddressRanges; j++) { if (prevBlock->AddressRanges()[j] != addressRanges[j] || prevBlock->AddressMasks()[j] != addressMasks[j]) @@ -901,9 +901,9 @@ void CompileBlock(ARM* cpu) block = new JitBlock(cpu->Num, i, numAddressRanges, numLiterals); block->LiteralHash = literalHash; block->InstrHash = instrHash; - for (int j = 0; j < numAddressRanges; j++) + for (u32 j = 0; j < numAddressRanges; j++) block->AddressRanges()[j] = addressRanges[j]; - for (int j = 0; j < numAddressRanges; j++) + for (u32 j = 0; j < numAddressRanges; j++) block->AddressMasks()[j] = addressMasks[j]; for (int j = 0; j < numLiterals; j++) block->Literals()[j] = literalLoadAddrs[j]; @@ -929,7 +929,7 @@ void CompileBlock(ARM* cpu) } assert((localAddr & 1) == 0); - for (int j = 0; j < numAddressRanges; j++) + for (u32 j = 0; j < numAddressRanges; j++) { assert(addressRanges[j] == block->AddressRanges()[j]); assert(addressMasks[j] == block->AddressMasks()[j]); |