aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 1f488f9..805a885 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -177,7 +177,7 @@ void *tcc_get_symbol(TCCState *s, const char *name)
if (!sym_index)
return NULL;
sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
- return (void*)sym->st_value;
+ return (void*)(long)sym->st_value;
}
void *tcc_get_symbol_err(TCCState *s, const char *name)