]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
actually handle unary plus...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 21:38:52 +0000 (22:38 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 21:38:52 +0000 (22:38 +0100)
parser.c

index e8fddc91b5c21d64d2faf1649a200a54625a6567..3ea3e4447e01f0de9a021156645c8668cda28de4 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -600,6 +600,9 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy)
             vec_push(sy->out, syblock(ctx, blocks[0]));
             return true;
 
+        case opid2('+','P'):
+            out = exprs[0];
+            break;
         case opid2('-','P'):
             switch (exprs[0]->expression.vtype) {
                 case TYPE_FLOAT: