SELinux: header generation may hit infinite loop
[pandora-kernel.git] / scripts / selinux / genheaders / genheaders.c
index 771b86f..2462696 100644 (file)
@@ -13,7 +13,7 @@ struct security_class_mapping {
 #include "classmap.h"
 #include "initial_sid_to_string.h"
 
-#define max(x, y) ((x > y) ? x : y)
+#define max(x, y) (((int)(x) > (int)(y)) ? x : y)
 
 const char *progname;