orcarm: OSX doesn't like comparisons against enum and int.
authorTodd Agulnick <todd@agulnick.com>
Thu, 2 Jan 2014 00:40:00 +0000 (16:40 -0800)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Jan 2014 09:03:29 +0000 (10:03 +0100)
orc/orcarm.c

index d60c1d9..e89066e 100644 (file)
@@ -33,7 +33,7 @@ orc_arm_cond_name (OrcArmCond cond)
     "eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
     "hi", "ls", "ge", "lt", "gt", "le", "", ""
   };
-  if (cond < 0 || cond >= 16) {
+  if ((int)cond < 0 || (int)cond >= 16) {
     return "ERROR";
   }
   return cond_names[cond&0xf];