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

This commit is contained in:
Nguyen Anh Quynh 2014-02-27 13:54:28 +08:00
parent 5848aaafb2
commit 48d583281c
1 changed files with 1 additions and 1 deletions

2
cs.c
View File

@ -81,7 +81,7 @@ bool cs_support(int query)
(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) {