summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belistsched.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/belistsched.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/belistsched.c')
-rw-r--r--ir/be/belistsched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/belistsched.c b/ir/be/belistsched.c
index 4b04d64..2bd5147 100644
--- a/ir/be/belistsched.c
+++ b/ir/be/belistsched.c
@@ -406,7 +406,7 @@ static void add_to_sched(block_sched_env_t *env, ir_node *irn)
*/
static void list_sched_block(ir_node *block, void *env_ptr)
{
- sched_env_t *env = env_ptr;
+ sched_env_t *env = (sched_env_t*)env_ptr;
const list_sched_selector_t *selector = env->selector;
block_sched_env_t be;
@@ -432,8 +432,8 @@ static void list_sched_block(ir_node *block, void *env_ptr)
/* Then one can add all nodes are ready to the set. */
foreach_out_edge(block, edge) {
- ir_node *irn = get_edge_src_irn(edge);
- ir_opcode code = get_irn_opcode(irn);
+ ir_node *irn = get_edge_src_irn(edge);
+ unsigned code = get_irn_opcode(irn);
int users;
if (code == iro_End) {