Use corresponding macro.
[libfirm] / ir / ir / irgwalk.c
index 83ff86f..440dc61 100644 (file)
@@ -373,7 +373,7 @@ static void irg_block_walk_2(ir_node *node, irg_walk_func *pre,
 }
 
 
-/* walks only over Block nodes in the graph.  Has it's own visited
+/* walks only over Block nodes in the graph.  Has its own visited
    flag, so that it can be interleaved with the other walker.         */
 void irg_block_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
 {
@@ -488,7 +488,6 @@ static void walk_entity(ir_entity *ent, void *env)
 /* Walks over all code in const_code_irg. */
 void walk_const_code(irg_walk_func *pre, irg_walk_func *post, void *env)
 {
-       int j;
        walk_env my_env;
        ir_segment_t s;
        size_t i;
@@ -515,7 +514,7 @@ void walk_const_code(irg_walk_func *pre, irg_walk_func *post, void *env)
        for (i = 0; i < n_types; i++) {
                ir_type *tp = get_irp_type(i);
                if (is_Array_type(tp)) {
-                       int n_dim = get_array_n_dimensions(tp);
+                       size_t j, n_dim = get_array_n_dimensions(tp);
                        for (j = 0; j < n_dim; j++) {
                                ir_node *n = get_array_lower_bound(tp, j);
                                if (n) irg_walk(n, pre, post, env);