From: David Given Date: Mon, 12 Dec 2016 22:42:10 +0000 (+0100) Subject: Fix warnings. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=351142b46171ce58a88ef3e64b1574eef5c30535;p=ack.git Fix warnings. --- diff --git a/mach/proto/mcg/data.c b/mach/proto/mcg/data.c index 13352ed37..a237d5a2c 100644 --- a/mach/proto/mcg/data.c +++ b/mach/proto/mcg/data.c @@ -61,7 +61,7 @@ void data_int(arith data, size_t size, bool is_ro) { emit_header(is_ro ? SECTION_ROM : SECTION_DATA); assert((size == 1) || (size == 2) || (size == 4) || (size == 8)); - fprintf(outputfile, "\t.data%d ", size); + fprintf(outputfile, "\t.data%zd ", size); writehex(data, size); fprintf(outputfile, "\n"); } @@ -75,11 +75,11 @@ void data_float(const char* data, size_t size, bool is_ro) emit_header(is_ro ? SECTION_ROM : SECTION_DATA); assert((size == 4) || (size == 8)); - i = float_cst(data, size, (char*) buffer); + i = float_cst((char*) data, size, (char*) buffer); if ((i != 0) && (i != 2)) /* 2 == overflow */ fatal("cannot parse floating point constant %s sz %d", data, size); - fprintf(outputfile, "\t!float %s sz %d\n", data, size); + fprintf(outputfile, "\t!float %s sz %zd\n", data, size); fprintf(outputfile, "\t.data1 "); writehex(buffer[0], 1); for (i=1; i