X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fcompound_path.c;h=583dff0f0127351da8eb28829e353e69970cf2c0;hb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;hp=9d7c19d962573bf1ca20a042c74fc36f9ea110d7;hpb=ca42e4ac671c49f7ba8e9dfffd805abf49b2c733;p=libfirm diff --git a/ir/tr/compound_path.c b/ir/tr/compound_path.c index 9d7c19d96..583dff0f0 100644 --- a/ir/tr/compound_path.c +++ b/ir/tr/compound_path.c @@ -43,7 +43,7 @@ compound_graph_path *new_compound_graph_path(ir_type *tp, int length) assert(is_compound_type(tp) || is_Array_type(tp)); assert(length > 0); - res = xmalloc(sizeof(*res) + (length-1) * sizeof(res->list[0])); + res = (compound_graph_path*)xmalloc(sizeof(*res) + (length-1) * sizeof(res->list[0])); memset(res, 0, sizeof(*res) + (length-1) * sizeof(res->list[0])); res->kind = k_ir_compound_graph_path; res->tp = tp; @@ -292,7 +292,7 @@ void set_compound_ent_value(ir_entity *ent, ir_node *val, ir_entity *member, set_compound_ent_value_w_path(ent, val, path, pos); } -void set_array_entity_values(ir_entity *ent, tarval **values, int num_vals) +void set_array_entity_values(ir_entity *ent, ir_tarval **values, int num_vals) { int i; ir_type *arrtp = get_entity_type(ent);