From 6d49e06fa28225ea3845abf1f72e01fdcd669876 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 30 Dec 2003 22:42:49 +0000 Subject: [PATCH] Fixed a few bugs git-svn-id: svn://svn.cc65.org/cc65/trunk@2860 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/expr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ca65/expr.c b/src/ca65/expr.c index 417ca11cc..1935c4f71 100644 --- a/src/ca65/expr.c +++ b/src/ca65/expr.c @@ -345,7 +345,7 @@ static ExprNode* FuncBlank (void) } NextTok (); } - return 0; + Result = 0; } return GenLiteralExpr (Result); } @@ -431,7 +431,7 @@ static ExprNode* DoMatch (enum TC EqualityLevel) /* We may not end-of-line of end-of-file here */ if (TokIsSep (Tok)) { Error ("Unexpected end of line"); - return 0; + return GenLiteralExpr (0); } /* Get a node with this token */ @@ -462,7 +462,7 @@ static ExprNode* DoMatch (enum TC EqualityLevel) /* We may not end-of-line of end-of-file here */ if (TokIsSep (Tok)) { Error ("Unexpected end of line"); - return 0; + return GenLiteralExpr (0); } /* Compare the tokens if the result is not already known */ @@ -644,7 +644,7 @@ static ExprNode* FuncStrAt (void) /* Must be a valid index */ if (Index >= (long) strlen (Str)) { Error ("Range error"); - return 0; + return GenLiteralExpr (0); } /* Get the char, handle as unsigned. Be sure to translate it into @@ -766,7 +766,7 @@ static ExprNode* Factor (void) { ExprNode* L; ExprNode* N; - long Val; + long Val; switch (Tok) { -- 2.39.5