From b25f80f09934704e74e85cc3f0b9fb42e812ac07 Mon Sep 17 00:00:00 2001 From: johanknol Date: Tue, 18 Sep 2001 13:36:56 +0000 Subject: [PATCH] prevent a compiler crash git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1285 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 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 */ -- 2.47.2