mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-13 04:52:06 +00:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
parent
be7c6a0819
commit
e1a3e41bf3
15 changed files with 25 additions and 27 deletions
|
@ -42,7 +42,7 @@ u32 CDump::GetGPR(int _step, int _gpr)
|
|||
u32 offset = _step * STRUCTUR_SIZE;
|
||||
|
||||
if (offset >= m_size)
|
||||
return -1;
|
||||
return UINT32_MAX;
|
||||
|
||||
return Read32(offset + OFFSET_GPR + (_gpr * 4));
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ u32 CDump::GetPC(int _step)
|
|||
u32 offset = _step * STRUCTUR_SIZE;
|
||||
|
||||
if (offset >= m_size)
|
||||
return -1;
|
||||
return UINT32_MAX;
|
||||
|
||||
return Read32(offset + OFFSET_PC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue