summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beemitter.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
committerMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
commitce6161a7e42a48f7422b7babcc64d8ace18e2687 (patch)
tree2fa5272f9220c4e08a5309057f44646fb9f882a7 /ir/be/beemitter.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/beemitter.c')
-rw-r--r--ir/be/beemitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/beemitter.c b/ir/be/beemitter.c
index c0822dc..42fd04b 100644
--- a/ir/be/beemitter.c
+++ b/ir/be/beemitter.c
@@ -82,7 +82,7 @@ void be_emit_irprintf(const char *fmt, ...)
void be_emit_write_line(void)
{
size_t len = obstack_object_size(&emit_obst);
- char *line = obstack_finish(&emit_obst);
+ char *line = (char*)obstack_finish(&emit_obst);
fwrite(line, 1, len, emit_file);
obstack_free(&emit_obst, line);