cleanup/partly rewrite code_placement algo
[libfirm] / ir / libcore / lc_opts_enum.c
index e7ac648..ebcb034 100644 (file)
@@ -18,9 +18,6 @@
 #ifdef _WIN32
 #include <malloc.h>
 #endif
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
 
 #include "lc_opts_t.h"
 #include "lc_opts_enum.h"
@@ -102,7 +99,7 @@ int lc_opt_enum_ ## N ## _dump(char *buf, size_t n, LC_UNUSED(const char *name),
                } \
        } \
  \
-       return strlen(buf); \
+       return (int)strlen(buf); \
 } \
 
 
@@ -131,7 +128,7 @@ int lc_opt_enum_ ## N ## _dump_vals(char *buf, size_t n, LC_UNUSED(const char *n
                prefix = ", "; \
        } \
  \
-       return strlen(buf); \
+       return (int)strlen(buf); \
 } \