aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-03-09 22:52:31 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-03-09 22:54:30 +0800
commit62d1da1b3eb91b405a633aa4e4d841d8a7a0da3a (patch)
tree00654d6a0515309870f2c8fb173144ed7e8ed5fe /tccrun.c
parent98afe11c85ad4834c05fffb226d6b9e7926f4f88 (diff)
downloadtinycc-62d1da1b3eb91b405a633aa4e4d841d8a7a0da3a.tar.gz
tinycc-62d1da1b3eb91b405a633aa4e4d841d8a7a0da3a.tar.bz2
Fix warning of clang
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccrun.c b/tccrun.c
index 620be0d..bd8c33f 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -272,7 +272,7 @@ static addr_t rt_printline(addr_t wanted_pc, const char *msg)
if (stab_section) {
stab_len = stab_section->data_offset;
stab_sym = (Stab_Sym *)stab_section->data;
- stab_str = stabstr_section->data;
+ stab_str = (char *) stabstr_section->data;
}
func_name[0] = '\0';
@@ -365,7 +365,7 @@ no_stabs:
if (wanted_pc >= sym->st_value &&
wanted_pc < sym->st_value + sym->st_size) {
pstrcpy(last_func_name, sizeof(last_func_name),
- strtab_section->data + sym->st_name);
+ (char *) strtab_section->data + sym->st_name);
func_addr = sym->st_value;
goto found;
}