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:
parent
5848aaafb2
commit
48d583281c
2
cs.c
2
cs.c
|
@ -81,7 +81,7 @@ bool cs_support(int query)
|
||||||
(1 << CS_ARCH_MIPS) | (1 << CS_ARCH_X86) |
|
(1 << CS_ARCH_MIPS) | (1 << CS_ARCH_X86) |
|
||||||
(1 << CS_ARCH_PPC));
|
(1 << CS_ARCH_PPC));
|
||||||
|
|
||||||
if (query < CS_ARCH_MAX)
|
if ((unsigned int)query < CS_ARCH_MAX)
|
||||||
return all_arch & (1 << query);
|
return all_arch & (1 << query);
|
||||||
|
|
||||||
if (query == CS_SUPPORT_DIET) {
|
if (query == CS_SUPPORT_DIET) {
|
||||||
|
|
Loading…
Reference in New Issue