X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fscalar_replace.c;h=dd49297e5032514ad382c23729c217586f1e1126;hb=4b3b89d08873a30a8b08fe8507d1796257495e42;hp=7e16e06fd5ba72b495e035b656ec8575b314ab42;hpb=0718c4af2266d44de07a2efdfa6e19c693499c58;p=libfirm diff --git a/ir/opt/scalar_replace.c b/ir/opt/scalar_replace.c index 7e16e06fd..dd49297e5 100644 --- a/ir/opt/scalar_replace.c +++ b/ir/opt/scalar_replace.c @@ -27,10 +27,9 @@ #include "config.h" #endif -#ifdef HAVE_STRING_H #include -#endif +#include "iroptimize.h" #include "scalar_replace.h" #include "irflag_t.h" #include "irouts.h" @@ -433,7 +432,7 @@ static unsigned allocate_value_numbers(pset *sels, ir_entity *ent, unsigned vnum set_insert(pathes, key, PATH_SIZE(key), path_hash(key)); SET_VNUM(sel, key->vnum); - ARR_EXTO(ir_mode *, *modes, (key->vnum + 15) & ~15); + ARR_EXTO(ir_mode *, *modes, (int)((key->vnum + 15) & ~15)); (*modes)[key->vnum] = get_type_mode(get_entity_type(get_Sel_entity(sel)));