disasm: Add explicit type conversion to placate compiler

Otherwise getting

 | disasm.c:200:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 |         return GET_REGISTER(nasm_rd_bndreg, regval);

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2014-12-20 11:40:36 +03:00
parent 7729edf722
commit 1006a47fe8

View File

@ -159,7 +159,7 @@ static enum reg_enum whichreg(opflags_t regflags, int regval, int rex)
return 0;
#define GET_REGISTER(__array, __index) \
((__index) < ARRAY_SIZE(__array) ? __array[(__index)] : 0)
((size_t)(__index) < (size_t)ARRAY_SIZE(__array) ? __array[(__index)] : 0)
if (!(REG8 & ~regflags)) {
if (rex & (REX_P|REX_NH))