- fixed intrinsic lowerings: use Phi lists instead of links
[libfirm] / ir / lower / lower_switch.c
index 6cfae4b..3570c25 100644 (file)
  * @version $Id$
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include <limits.h>
 
+#include "array_t.h"
 #include "ircons.h"
 #include "irgopt.h"
 #include "irgwalk.h"
@@ -100,7 +99,7 @@ static int casecmp(const void *a, const void *b)
 {
        const case_data_t *cda = a;
        const case_data_t *cdb = b;
-       return cda->value - cdb->value;
+       return (cda->value > cdb->value) - (cda->value < cdb->value);
 }
 
 /**