cs_support(): typecast query to uint before comparing with CS_ARCH_ALL. this is to avoid potential problems in future when we add more query types
diff --git a/cs.c b/cs.c
index 4f561a1..d4afd4f 100644
--- a/cs.c
+++ b/cs.c
@@ -81,7 +81,7 @@
 				(1 << CS_ARCH_MIPS) | (1 << CS_ARCH_X86) |
 				(1 << CS_ARCH_PPC));
 
-	if (query < CS_ARCH_MAX)
+	if ((unsigned int)query < CS_ARCH_MAX)
 		return all_arch & (1 << query);
 
 	if (query == CS_SUPPORT_DIET) {