fix various instances of -1 being assigned to unsigned types
This commit is contained in:
1 parent
be7c6a0819
commit
e1a3e41bf3
15 files changed
+25
-27
No files matched your search
@@ -495,7 +495,7 @@ void Interpreter::divwx(UGeckoInstruction inst)
|
||||
}
|
||||
|
||||
if (((u32)a & 0x80000000) && b == 0)
|
||||
rGPR[inst.RD] = -1;
|
||||
rGPR[inst.RD] = UINT32_MAX;
|
||||
else
|
||||
rGPR[inst.RD] = 0;
|
||||
}
|
||||
|
||||
@@ -730,8 +730,8 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock* block, CodeBuffer* buffer, u32
|
||||
code[i].opinfo = opinfo;
|
||||
code[i].address = address;
|
||||
code[i].inst = inst;
|
||||
code[i].branchTo = -1;
|
||||
code[i].branchToIndex = -1;
|
||||
code[i].branchTo = UINT32_MAX;
|
||||
code[i].branchToIndex = UINT32_MAX;
|
||||
code[i].skip = false;
|
||||
block->m_stats->numCycles += opinfo->numCycles;
|
||||
block->m_physical_addresses.insert(result.physical_address);
|
||||
|
||||
Reference in new issue
Block a user