aboutsummaryrefslogtreecommitdiff
path: root/x86_64-link.c
diff options
context:
space:
mode:
authorAndrei Warkentin <andrey.warkentin@gmail.com>2017-03-28 02:51:39 -0400
committerAndrei Warkentin <awarkentin@awarkentin-mba.local>2017-04-25 13:55:18 +0300
commit63b2f907bd9f8ad82b2cfaf8a34497578877253b (patch)
tree8424ba19fad0a1d6812fc61dde9ecfd2f81374d2 /x86_64-link.c
parent91cd148a05e2c492a02eb77b12a2581b87bc9822 (diff)
downloadtinycc-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 'x86_64-link.c')
-rw-r--r--x86_64-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64-link.c b/x86_64-link.c
index 27cad93..5f7cec3 100644
--- a/x86_64-link.c
+++ b/x86_64-link.c
@@ -157,7 +157,7 @@ void relocate_init(Section *sr)
qrel = (ElfW_Rel *) sr->data;
}
-void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val)
+void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t addr, addr_t val)
{
int sym_index, esym_index;