From 96cf26b74b78de7e6f4afc6cf839eaa9896e7cd2 Mon Sep 17 00:00:00 2001 From: johanknol Date: Sun, 3 Mar 2002 10:50:54 +0000 Subject: [PATCH] fixed the << promotion for ops git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1984 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDCCast.c b/src/SDCCast.c index 871bf904..a647dcdd 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -2658,7 +2658,7 @@ decorateType (ast * tree) /* a left shift must be done with at least 16bits */ if ((tree->opval.op==LEFT_OP) && (getSize(LTYPE(tree))<2)) { // insert a cast - if (IS_AST_SYM_VALUE(tree->left)) { + if (IS_AST_SYM_VALUE(tree->left) || IS_AST_OP(tree->left)) { tree->left = decorateType (newNode (CAST, newAst_LINK(copyLinkChain(LTYPE(tree))), -- 2.47.2