From e8402d9a98ef0fe83b5053354147d23f2d831467 Mon Sep 17 00:00:00 2001 From: johanknol Date: Mon, 30 Jul 2001 10:18:11 +0000 Subject: [PATCH] fixed bug #443257 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1109 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCast.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SDCCast.c b/src/SDCCast.c index c2c4a060..a28cf06f 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -2052,6 +2052,9 @@ decorateType (ast * tree) return decorateType (otree); } +#if 0 + // we can't do this because of "(int & 0xff) << 3" + /* if right or left is literal then result of that type */ if (IS_LITERAL (RTYPE (tree))) { @@ -2076,6 +2079,11 @@ decorateType (ast * tree) TETYPE (tree) = getSpec (TTYPE (tree)); } } +#else + TTYPE (tree) = + computeType (LTYPE (tree), RTYPE (tree)); + TETYPE (tree) = getSpec (TTYPE (tree)); +#endif LRVAL (tree) = RRVAL (tree) = 1; return tree; } -- 2.47.2