diff options
| author | grischka <grischka> | 2009-05-11 18:46:25 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-05-11 18:46:25 +0200 |
| commit | 40f5ce002e744591dc8de6f89545064ac726d595 (patch) | |
| tree | a74fde5f7e3dccb410d6af544fe6f4a689317e3e /tccelf.c | |
| parent | 67aebdd5b733094bffbf23a87da14d2c53937a99 (diff) | |
| download | tinycc-40f5ce002e744591dc8de6f89545064ac726d595.tar.gz tinycc-40f5ce002e744591dc8de6f89545064ac726d595.tar.bz2 | |
fix warnings with tcc_add/get_symbol
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
