mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 11:20:03 +00:00
fix signedness issue
This commit is contained in:
committed by
Ryan Fleury
parent
671431cfbd
commit
a3bcfe01e1
+2
-2
@@ -1117,7 +1117,7 @@ THREAD_POOL_TASK_FUNC(lnk_obj_reloc_patcher)
|
||||
// compute symbol location values
|
||||
U32 symbol_secnum = 0;
|
||||
U32 symbol_secoff = 0;
|
||||
U32 symbol_voff = 0;
|
||||
S64 symbol_voff = 0;
|
||||
{
|
||||
COFF_ParsedSymbol symbol;
|
||||
if (obj_header.is_big_obj) {
|
||||
@@ -1149,7 +1149,7 @@ THREAD_POOL_TASK_FUNC(lnk_obj_reloc_patcher)
|
||||
if (str8_match(symbol.name, str8_lit("__ImageBase"), 0)) {
|
||||
symbol_voff = 0;
|
||||
} else {
|
||||
symbol_voff = symbol.value - task->image_base;
|
||||
symbol_voff = (S64)symbol.value - (S64)task->image_base;
|
||||
}
|
||||
} else if (interp == COFF_SymbolValueInterp_Weak) {
|
||||
// unresolved weak
|
||||
|
||||
Reference in New Issue
Block a user