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

_v3_old
Nguyen Anh Quynh 11 years ago
parent 5848aaafb2
commit 48d583281c
  1. 2
      cs.c

@ -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) {

Loading…
Cancel
Save