mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
fix a gcc compiler warning for the previous commit
mark a constant as long long (or -std=gnu99 is needed)
This commit is contained in:
parent
c2efd7c53b
commit
8dbe129ab7
2
tccelf.c
2
tccelf.c
@ -927,7 +927,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
|
||||
{
|
||||
long long diff;
|
||||
diff = (long long)val - addr;
|
||||
if (diff < -2147483648 || diff > 2147483647) {
|
||||
if (diff < -2147483648LL || diff > 2147483647LL) {
|
||||
tcc_error("internal error: relocation failed");
|
||||
}
|
||||
*(int *)ptr += diff;
|
||||
|
Loading…
Reference in New Issue
Block a user