removed unitialized used vartiable
[libfirm] / ir / be / bespillloc.c
index 3ca7b35..1324811 100644 (file)
@@ -1,4 +1,7 @@
 /*     be_spill_loc (ation) -> BY Sven Polk*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "obst.h"
 #include "list.h"
@@ -462,7 +465,7 @@ static void Cli_ents(int start, int end, int nr, void *env) {
        cli->ents       = pset_new_ptr_default();
 
        foreach_pset(surrounder, ent) {pset_insert_ptr(cli->ents,ent);}
-       pmap_insert(spi->Cli_ents, nr, cli);
+       pmap_insert(spi->Cli_ents, (void *)nr, cli);
        del_pset(surrounder);
 }