From: cuz Date: Fri, 21 Jan 2005 12:57:41 +0000 (+0000) Subject: Allow a unary + X-Git-Tag: V2.12.0~465 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27b5721cf6f21565e7ae547cb2b26e109b9950a9;p=cc65 Allow a unary + git-svn-id: svn://svn.cc65.org/cc65/trunk@3371 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/expr.c b/src/ca65/expr.c index b3e2b3617..b39f0655f 100644 --- a/src/ca65/expr.c +++ b/src/ca65/expr.c @@ -751,7 +751,7 @@ static ExprNode* FuncXMatch (void) static ExprNode* Function (ExprNode* (*F) (void)) /* Handle builtin functions */ -{ +{ ExprNode* E; /* Skip the keyword */ @@ -810,6 +810,11 @@ static ExprNode* Factor (void) NextTok (); break; + case TOK_PLUS: + NextTok (); + N = Factor (); + break; + case TOK_MINUS: NextTok (); L = Factor ();