Common: Maintain C++11 support in sign extend.

This commit is contained in:
Unknown W. Brackets committed 2021-01-31 08:44:02 -08:00
1 parent 1b00da2f3a
commit 5d60fa0d0d
23 files changed
+73 -60

No files matched your search

+1 -1
View File
@@ -626,7 +626,7 @@ static void WriteVarSymbol(WriteVarSymbolState &state, u32 exportAddress, u32 re
case R_MIPS_LO16:
{
// Sign extend the existing low value (e.g. from addiu.)
const u32 offsetLo = SignExtend16To32(relocData);
const u32 offsetLo = SignExtend16ToU32(relocData);
u32 full = exportAddress;
// This is only used in the error case (no hi/wrong hi.)
if (!reverse) {