From: cuz Date: Tue, 30 Dec 2003 22:42:49 +0000 (+0000) Subject: Fixed a few bugs X-Git-Tag: V2.12.0~958 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d49e06fa28225ea3845abf1f72e01fdcd669876;p=cc65 Fixed a few bugs git-svn-id: svn://svn.cc65.org/cc65/trunk@2860 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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) {