* src/SDCCast.c (decorateType): fixed bug #874046
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 10 Jan 2004 05:51:34 +0000 (05:51 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 10 Jan 2004 05:51:34 +0000 (05:51 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3108 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCast.c

index 5be7c9992ea9f05598f5ae6339b539baa70bbcc4..bc99be52709f8d3c34ad6c846f68c5a114777fb6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-10 Erik Petrich <epetrich@ivorytower.norman.ok.us>
+
+       * src/SDCCast.c (decorateType): fixed bug #874046
+
 2004-01-09  Borut Razem <borut.razem@siol.net>
 
        * support/scripts/sdcc.nsi: remove previous installation
index 15f92a760e34a7147bb041efeff3b514693915c9..9944eb407736217f94da4d98f6533c0c194cd5de 100644 (file)
@@ -3322,7 +3322,8 @@ decorateType (ast * tree)
 
       /* if the right is a literal replace the tree */
       if (IS_LITERAL (RETYPE (tree))) {
-        if (IS_PTR (LTYPE (tree)) && !IS_GENPTR (LTYPE (tree)) ) {
+        #if 0
+       if (IS_PTR (LTYPE (tree)) && !IS_GENPTR (LTYPE (tree)) ) {
           /* rewrite      (type *)litaddr
              as           &temp
              and define   type at litaddr temp
@@ -3359,6 +3360,7 @@ decorateType (ast * tree)
           TLVAL (newTree) = 1;
           return newTree;
         }
+       #endif
         if (!IS_PTR (LTYPE (tree))) {
          tree->type = EX_VALUE;
          tree->opval.val =