X-Git-Url: https://git.saurik.com/apple/boot.git/blobdiff_plain/14c7c974991c850bfa0348affbd4bee3223205ee..HEAD:/i386/nasm/disasm.c diff --git a/i386/nasm/disasm.c b/i386/nasm/disasm.c index 739a55d..dd8cb18 100644 --- a/i386/nasm/disasm.c +++ b/i386/nasm/disasm.c @@ -560,13 +560,13 @@ long disasm (unsigned char *data, char *output, int segsize, long offset, case P_O32: slen += sprintf(output+slen, "o32 "); break; } - for (i = 0; i < elements(ico); i++) + for (i = 0; i < (int)elements(ico); i++) if ((*p)->opcode == ico[i]) { slen += sprintf(output+slen, "%s%s", icn[i], whichcond(ins.condition)); break; } - if (i >= elements(ico)) + if (i >= (int)elements(ico)) slen += sprintf(output+slen, "%s", insn_names[(*p)->opcode]); colon = FALSE; length += data - origdata; /* fix up for prefixes */