aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-23 16:36:09 +0300
committerseyko <seyko2@gmail.com>2015-03-23 16:36:09 +0300
commit8dbe129ab78c2d43a9c69da795436cd7a4daf820 (patch)
tree3b7815099cfc44e5395bac59a38e3afea631f785
parentc2efd7c53b5e4a792e9609e6fbe56196ed56787c (diff)
downloadtinycc-8dbe129ab78c2d43a9c69da795436cd7a4daf820.tar.gz
tinycc-8dbe129ab78c2d43a9c69da795436cd7a4daf820.tar.bz2
fix a gcc compiler warning for the previous commit
mark a constant as long long (or -std=gnu99 is needed)
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 5e83cac..26cdb59 100644
--- a/tccelf.c
+++ b/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;