diff options
| author | seyko <seyko2@gmail.com> | 2015-03-23 16:36:09 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-03-23 16:36:09 +0300 |
| commit | 8dbe129ab78c2d43a9c69da795436cd7a4daf820 (patch) | |
| tree | 3b7815099cfc44e5395bac59a38e3afea631f785 /tccelf.c | |
| parent | c2efd7c53b5e4a792e9609e6fbe56196ed56787c (diff) | |
| download | tinycc-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)
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
