diff options
| author | Andrei Warkentin <andrey.warkentin@gmail.com> | 2017-03-28 02:51:39 -0400 |
|---|---|---|
| committer | Andrei Warkentin <awarkentin@awarkentin-mba.local> | 2017-04-25 13:55:18 +0300 |
| commit | 63b2f907bd9f8ad82b2cfaf8a34497578877253b (patch) | |
| tree | 8424ba19fad0a1d6812fc61dde9ecfd2f81374d2 /tccelf.c | |
| parent | 91cd148a05e2c492a02eb77b12a2581b87bc9822 (diff) | |
| download | tinycc-63b2f907bd9f8ad82b2cfaf8a34497578877253b.tar.gz tinycc-63b2f907bd9f8ad82b2cfaf8a34497578877253b.tar.bz2 | |
tcc: fixup clang warnings
The O(xxx) stuff in i386-asm.c had me scratching my head. Extracting
the macro and trying it out in a separate program doesn't give
me any warnings, so I'm confused about what could be going on there.
Any cast will make things happy. I used a uint64_t to catch actual
cases of overflow, which will still cause a -Wconstant-conversion
warning.
Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -787,7 +787,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) tgt += rel->r_addend; #endif addr = s->sh_addr + rel->r_offset; - relocate(s1, rel, type, ptr, addr, tgt); + relocate(s1, rel, type, ptr, addr, tgt); } /* if the relocation is allocated, we change its symbol table */ if (sr->sh_flags & SHF_ALLOC) |
