From 79cf650fb6d4535de9c94e36b3af5703c5c3a69b Mon Sep 17 00:00:00 2001 From: epetrich Date: Sat, 10 Jan 2004 05:51:34 +0000 Subject: [PATCH] * src/SDCCast.c (decorateType): fixed bug #874046 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3108 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCCast.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5be7c999..bc99be52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-01-10 Erik Petrich + + * src/SDCCast.c (decorateType): fixed bug #874046 + 2004-01-09 Borut Razem * support/scripts/sdcc.nsi: remove previous installation diff --git a/src/SDCCast.c b/src/SDCCast.c index 15f92a76..9944eb40 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -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 = -- 2.39.5