while (get_class_supertype_index(fromtype, totype) == (size_t)-1) {
/* Insert a cast to a supertype of fromtype. */
ir_type *new_type = NULL;
- int i, n_supertypes = get_class_n_supertypes(fromtype);
+ size_t i, n_supertypes = get_class_n_supertypes(fromtype);
for (i = 0; i < n_supertypes && !new_type; ++i) {
ir_type *new_super = get_class_supertype(fromtype, i);
if (is_SubClass_of(new_super, totype))
void *env)
{
type_or_ent cont;
- int i, n;
/* marked? */
switch (get_kind(tore.ent)) {
switch (get_type_tpop_code(tp)) {
case tpo_class:
{
+ size_t i, n;
+
n = get_class_n_supertypes(tp);
for (i = 0; i < n; ++i) {
cont.typ = get_class_supertype(tp, i);
type_walk_func *post, void *env)
{
type_or_ent cont;
- int i, n;
/* marked? */
switch (get_kind(tore.ent)) {
switch (get_type_tpop_code(tp)) {
case tpo_class:
{
+ size_t i, n;
+
/* execute pre method */
if (pre)
pre(tore, env);
static void class_walk_s2s_2(ir_type *tp, class_walk_func *pre,
class_walk_func *post, void *env)
{
- int i, n;
+ size_t i, n;
/* marked? */
if (type_visited(tp)) return;
entity_walk_func *doit,
void *env)
{
- int i, n;
+ size_t i, n;
switch (get_type_tpop_code(tp)) {
case tpo_class: