From: nasm-bot f. C. G. <gor...@gm...> - 2014-12-20 08:42:47
|
Commit-ID: 1006a47fe82acd82db9f52617060b373223ebcf3 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=1006a47fe82acd82db9f52617060b373223ebcf3 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 20 Dec 2014 11:40:36 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sat, 20 Dec 2014 11:40:36 +0300 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 <gor...@gm...> --- disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disasm.c b/disasm.c index 161868d..5e3a5e5 100644 --- a/disasm.c +++ b/disasm.c @@ -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)) |