]> granicus.if.org Git - yasm/commitdiff
nasm-listfmt.c: Fix warning due to [1752] multiple -> signed change.
authorPeter Johnson <peter@tortall.net>
Tue, 6 Feb 2007 07:41:55 +0000 (07:41 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 6 Feb 2007 07:41:55 +0000 (07:41 -0000)
svn path=/trunk/yasm/; revision=1755

modules/listfmts/nasm/nasm-listfmt.c

index 3a8bd962ab4ef0f860b186f7e15b73028ca435ec..c1272303f3d802fad1f222ee51cbf47e0b6c0c38 100644 (file)
@@ -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;