* src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 12 Mar 2004 06:05:29 +0000 (06:05 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 12 Mar 2004 06:05:29 +0000 (06:05 +0000)
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

ChangeLog
src/SDCCglue.c

index fbb53538e5ef6020ffa06777070fe71e61bb2fc7..11ff71a66a1b3e4d985b2a01636d4c27276eaba0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
+       reported by Adam Wozniak in Sdcc-user list
+
 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
        
        * src/SDCCast.c (decorateType): fixed with bug and promotion in
index 222b11d23a0d758c7dcbe9258d140d77a11f3a2d..9f7c4806707de3a4d438ffe20bf637192841dcae 100644 (file)
@@ -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;