fix warnings with tcc_add/get_symbol

This commit is contained in:
grischka
2009-05-11 18:46:25 +02:00
parent 67aebdd5b7
commit 40f5ce002e
2 changed files with 2 additions and 2 deletions

View File

@ -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)