From: epetrich Date: Fri, 12 Mar 2004 06:05:29 +0000 (+0000) Subject: * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=59f36a6e785092bf8cfeba1c6d71b62e4ddc7544;p=fw%2Fsdcc * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer reported by Adam Wozniak in Sdcc-user list git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3262 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index fbb53538..11ff71a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-12 Erik Petrich + + * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer + reported by Adam Wozniak in Sdcc-user list + 2004-03-10 Bernhard Held * src/SDCCast.c (decorateType): fixed with bug and promotion in diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 222b11d2..9f7c4806 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -1078,13 +1078,13 @@ printIvalPtr (symbol * sym, sym_link * type, initList * ilist, FILE * oFile) case 3: // how about '390?? if (port->little_endian) { - fprintf (oFile, "\t.byte %s,%s,#0x%d\n", - aopLiteral (val, 0), aopLiteral (val, 1), GPTYPE_CODE); + fprintf (oFile, "\t.byte %s,%s,%s\n", + aopLiteral (val, 0), aopLiteral (val, 1), aopLiteral (val, 2)); } else { - fprintf (oFile, "\t.byte %s,%s,#0x%d\n", - aopLiteral (val, 1), aopLiteral (val, 0), GPTYPE_CODE); + fprintf (oFile, "\t.byte %s,%s,%s\n", + aopLiteral (val, 2), aopLiteral (val, 1), aopLiteral (val, 0)); } } return;