MSVC is a nimrod. (All verions 10.0 through 14.1)
"(4074): error C4146: unary minus operator applied to unsigned type, result still unsigned" So what? Many programmers are much better than the typical Microsoft coder. The C standard GUARANTEES that unsigned arithmetic uses two's complement, ignores overflow, and the result is what the hardware adder produces. modified: p_lx_elf.cpp
This commit is contained in:
+1
-1
@@ -4071,7 +4071,7 @@ void PackLinuxElf64::unpack(OutputFile *fo)
|
||||
set_te64(&sym->st_value, symval - asl_delta);
|
||||
}
|
||||
if (Elf64_Sym::SHN_ABS == symsec && xct_off <= symval) {
|
||||
adjABS(sym, -asl_delta);
|
||||
adjABS(sym, 0u - asl_delta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user