From 6bbbfabeec7c1456be6cc8d4238b46f59e5d5a53 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Sun, 3 Aug 2003 19:45:10 +0000 Subject: [PATCH] src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2802 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCCast.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7710fdb..ade05124 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-08-03 Bernhard Held + + * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth + 2003-08-01 Jesus Calvino-Fraga * support\librarian\clean.mk: Do not remove Makefile. diff --git a/src/SDCCast.c b/src/SDCCast.c index 1399fbd8..82b73603 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -1279,11 +1279,12 @@ bool constExprTree (ast *cexpr) { if (constExprTree(cexpr->left) && constExprTree(cexpr->right)) { return TRUE; } + return FALSE; case EX_OPERAND: return IS_CONSTANT(operandType(cexpr->opval.oprnd)); } return FALSE; -} +} /*-----------------------------------------------------------------*/ /* constExprValue - returns the value of a constant expression */ -- 2.39.5