commit | 48d583281c70f2f2c1b788ffe80ce9fb60982d62 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <[email protected]> | Thu Feb 27 13:54:28 2014 +0800 |
committer | Nguyen Anh Quynh <[email protected]> | Thu Feb 27 13:56:01 2014 +0800 |
tree | 9b8b84896dd9e5f5db0f8db2f10bea3e6146fa2f | |
parent | 5848aaafb20f31cb269be23cccd7159dafb7a91e [diff] [blame] |
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) {