summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.c
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2011-01-07 00:36:57 +0100
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2011-01-07 00:36:57 +0100
commit5244f95767968d8b59ef3f2031612b86474e2455 (patch)
treef31f1b7624fc12c8051e1caf747cc3421d2ed010 /ir/be/beloopana.c
parentf859cb0b5cd7c13d3d017770fdbd0b606785b1d9 (diff)
Fixed some 64bit warnings because of mixing size_t and other types.
[r28221]
Diffstat (limited to 'ir/be/beloopana.c')
-rw-r--r--ir/be/beloopana.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index 8c05a5d..9074bee 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
@@ -78,7 +78,7 @@ static unsigned be_compute_block_pressure(const ir_graph *irg,
be_lv_t *lv = be_get_irg_liveness(irg);
ir_nodeset_t live_nodes;
ir_node *irn;
- int max_live;
+ size_t max_live;
DBG((dbg, LEVEL_1, "Processing Block %+F\n", block));
@@ -88,7 +88,7 @@ static unsigned be_compute_block_pressure(const ir_graph *irg,
max_live = ir_nodeset_size(&live_nodes);
sched_foreach_reverse(block, irn) {
- int cnt;
+ size_t cnt;
if (is_Phi(irn))
break;
@@ -98,7 +98,7 @@ static unsigned be_compute_block_pressure(const ir_graph *irg,
max_live = MAX(cnt, max_live);
}
- DBG((dbg, LEVEL_1, "Finished with Block %+F (%s %u)\n", block, cls->name, max_live));
+ DBG((dbg, LEVEL_1, "Finished with Block %+F (%s %zu)\n", block, cls->name, max_live));
ir_nodeset_destroy(&live_nodes);
return max_live;