From: Peter Johnson Date: Tue, 6 Feb 2007 07:41:55 +0000 (-0000) Subject: nasm-listfmt.c: Fix warning due to [1752] multiple -> signed change. X-Git-Tag: v0.6.0~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=267862622b699c85a223f6d1170a24080fbf93c3;p=yasm nasm-listfmt.c: Fix warning due to [1752] multiple -> signed change. svn path=/trunk/yasm/; revision=1755 --- diff --git a/modules/listfmts/nasm/nasm-listfmt.c b/modules/listfmts/nasm/nasm-listfmt.c index 3a8bd962..c1272303 100644 --- a/modules/listfmts/nasm/nasm-listfmt.c +++ b/modules/listfmts/nasm/nasm-listfmt.c @@ -206,7 +206,7 @@ nasm_listfmt_output(yasm_listfmt *listfmt, FILE *f, yasm_linemap *linemap, while (bc && bc->line == line) { /*@null@*/ /*@only@*/ unsigned char *bigbuf; unsigned long size = REGULAR_BUF_SIZE; - unsigned long multiple; + long multiple; unsigned long offset = bc->offset; unsigned char *origp, *p; int gap; @@ -217,7 +217,7 @@ nasm_listfmt_output(yasm_listfmt *listfmt, FILE *f, yasm_linemap *linemap, bigbuf = yasm_bc_tobytes(bc, buf, &size, &gap, &info, nasm_listfmt_output_value, NULL); yasm_bc_get_multiple(bc, &multiple, 1); - if (multiple == 0) + if (multiple <= 0) size = 0; else size /= multiple;