s/keeped/kept/.
[libfirm] / ir / tr / type_finalization.c
index 7b9f54e..9e7f744 100644 (file)
@@ -36,7 +36,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
 static void do_finalization(type_or_ent tore, void *env)
 {
-       ir_type *glob_tp = env;
+       ir_type *glob_tp = (ir_type*)env;
 
        if (is_type(tore.typ)) {
                ir_type *cls = tore.typ;
@@ -86,11 +86,11 @@ static void do_finalization(type_or_ent tore, void *env)
  */
 void types_calc_finalization(void)
 {
-       if (! get_opt_closed_world())
-               return;
+       if (! get_opt_closed_world())
+               return;
 
        FIRM_DBG_REGISTER(dbg, "firm.tr.finalization");
 
-       /* types must be visited before it's entities */
+       /* types must be visited before their entities */
        type_walk(do_finalization, NULL, get_glob_type());
 }