From 27b5721cf6f21565e7ae547cb2b26e109b9950a9 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 21 Jan 2005 12:57:41 +0000 Subject: [PATCH] Allow a unary + git-svn-id: svn://svn.cc65.org/cc65/trunk@3371 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/expr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 (); -- 2.39.5