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:
John Reiser
2018-09-23 20:45:07 -07:00
parent 4f0cba9bb6
commit 37d6a34e58
+1 -1
View File
@@ -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);
}
}
}