diff options
| author | Lioncache <mai.iam2048@gmail.com> | 2023-12-18 16:37:33 -0500 |
|---|---|---|
| committer | Lioncache <mai.iam2048@gmail.com> | 2023-12-18 16:38:41 -0500 |
| commit | bb866248cfee7b2d099953c60a089b4fbfb9b1a7 (patch) | |
| tree | cf9791586f8c8d6da1e97f79059b3baa0be88486 /Source/Core | |
| parent | 1ceaa8c52a0f3763c015c34260518a0c35ced702 (diff) | |
Core/GeckoCode: Avoid signed conversion in RunCodeHandler()
i is being used alongside unsigned types, so it should be unsigned as well.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/GeckoCode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/GeckoCode.cpp b/Source/Core/Core/GeckoCode.cpp index 48e3423d15..7ba2988b4b 100644 --- a/Source/Core/Core/GeckoCode.cpp +++ b/Source/Core/Core/GeckoCode.cpp @@ -279,7 +279,7 @@ void RunCodeHandler(const Core::CPUThreadGuard& guard) PowerPC::MMU::HostWrite_U32(guard, LR(ppc_state), SP + 16); PowerPC::MMU::HostWrite_U32(guard, ppc_state.cr.Get(), SP + 20); // Registers FPR0->13 are volatile - for (int i = 0; i < 14; ++i) + for (u32 i = 0; i < 14; ++i) { PowerPC::MMU::HostWrite_U64(guard, ppc_state.ps[i].PS0AsU64(), SP + 24 + 2 * i * sizeof(u64)); PowerPC::MMU::HostWrite_U64(guard, ppc_state.ps[i].PS1AsU64(), |
