X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fcompound_path.c;h=583dff0f0127351da8eb28829e353e69970cf2c0;hb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;hp=85f1b181f1741b554914fe03c6b9c7f261be5659;hpb=9d3c8631459f431c313160dab5778e8a7b88dd92;p=libfirm diff --git a/ir/tr/compound_path.c b/ir/tr/compound_path.c index 85f1b181f..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;