src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 3 Aug 2003 19:45:10 +0000 (19:45 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 3 Aug 2003 19:45:10 +0000 (19:45 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2802 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCast.c

index c7710fdb38e89093ca457cfe8ffbded395f95fec..ade051246ab37de93cc47d5c47f0f8562ffd9eda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-03  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
+
 2003-08-01  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
 
        * support\librarian\clean.mk: Do not remove Makefile.
index 1399fbd8b2ffa2fbcafed208873de860c078ef59..82b73603ac4bb8298e977a1f1a4d029d801a4e4c 100644 (file)
@@ -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     */