]> git.sur5r.net Git - cc65/commitdiff
Allow a unary +
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 21 Jan 2005 12:57:41 +0000 (12:57 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 21 Jan 2005 12:57:41 +0000 (12:57 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3371 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/expr.c

index b3e2b3617f1eee077c126f567041ce764ee46370..b39f0655ffa1b6202129004c19bfd885946a8134 100644 (file)
@@ -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 ();