fixed type of visited flag and indentation
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 6 May 2005 13:15:31 +0000 (13:15 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 6 May 2005 13:15:31 +0000 (13:15 +0000)
[r5785]

ir/tr/tr_inheritance.c

index c0b3b73..fee2e57 100644 (file)
@@ -283,7 +283,7 @@ static void compute_down_closure(type *tp) {
 static void compute_up_closure(type *tp) {
   pset *myset, *subset;
   int i, n_subtypes, n_members, n_supertypes;
-  int master_visited = get_master_type_visited();
+  unsigned long master_visited = get_master_type_visited();
 
   assert(is_Class_type(tp));
 
@@ -354,13 +354,13 @@ void compute_inh_transitive_closure(void) {
 
       assert(get_type_visited(tp) < get_master_type_visited()-1);
       for (j = 0; j < n_subtypes && !has_unmarked_subtype; ++j) {
-       type *stp = get_class_subtype(tp, j);
-       if (type_not_visited(stp)) has_unmarked_subtype = true;
+             type *stp = get_class_subtype(tp, j);
+             if (type_not_visited(stp)) has_unmarked_subtype = true;
       }
 
       /* This is a good starting point. */
       if (!has_unmarked_subtype)
-       compute_down_closure(tp);
+             compute_down_closure(tp);
     }
   }