From: johanknol Date: Tue, 18 Sep 2001 13:36:56 +0000 (+0000) Subject: prevent a compiler crash X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b25f80f09934704e74e85cc3f0b9fb42e812ac07;p=fw%2Fsdcc prevent a compiler crash git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1285 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCast.c b/src/SDCCast.c index 1fcc1797..d782ea75 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -1287,7 +1287,7 @@ constExprValue (ast * cexpr, int check) if (check) werror (E_CONST_EXPECTED, "found expression"); - return NULL; + return constVal("0"); } /* return the value */