Commit 1c4973a0 authored by Michael Beck's avatar Michael Beck
Browse files

Windows has no ssize_t ...

[r28364]
parent f205e8a8
......@@ -149,7 +149,7 @@ static void garbage_collect_in_segment(ir_type *segment)
void garbage_collect_entities(void)
{
ssize_t i;
size_t i, n;
ir_segment_t s;
FIRM_DBG_REGISTER(dbg, "firm.opt.garbagecollect");
......@@ -169,7 +169,7 @@ void garbage_collect_entities(void)
/* remove graphs of non-visited functions
* (we have to count backwards so we can safely call remove_irp_irg
* while iterating) */
for (i = get_irp_n_irgs()-1; i >= 0; --i) {
for (i = 0, n = get_irp_n_irgs(); i < n; ++i) {
ir_graph *irg = get_irp_irg(i);
ir_entity *entity = get_irg_entity(irg);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment