From: uz Date: Wed, 28 Dec 2011 13:29:09 +0000 (+0000) Subject: Fixed a compiler warning. X-Git-Tag: V2.13.3~127 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5be3aeab7ff64b7c317a265418893542b58f21c3;p=cc65 Fixed a compiler warning. git-svn-id: svn://svn.cc65.org/cc65/trunk@5337 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/grc65/grc65.c b/src/grc65/grc65.c index 85ae16ffd..9268bd133 100644 --- a/src/grc65/grc65.c +++ b/src/grc65/grc65.c @@ -209,7 +209,7 @@ void fillOut(char *name, int len, char *filler) { setLen(name, len); fprintf(outputSFile, "\t.byte \"%s\"\n", name); - + a = strlen(name); if (a < len) { fprintf(outputSFile, "\t.res (%i - %i), %s\n", len, a, filler); @@ -496,8 +496,8 @@ void DoHeader(void) { if (apple == 1) { fprintf(outputSFile, - "\t.byte %i << 4 | %i\n", - myHead.structure + 2, strlen(myHead.dosname)); + "\t.byte %i << 4 | %u\n", + myHead.structure + 2, (unsigned) strlen(myHead.dosname)); fillOut(myHead.dosname, 15, "0"); @@ -623,7 +623,7 @@ void DoVLIR(void) { if (lastrecord == -1) { AbEnd("There must be at least one VLIR record.\n"); } - + /* always include record 0 */ vlirtable[0] = 1;