]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
make the += operator use binstore actually, currently it was acting like a regular...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 15:27:52 +0000 (17:27 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 15:27:52 +0000 (17:27 +0200)
parser.c

index 0eb1d68ccf79bfdca9dfc3311e63f9b01d340b3f..72b6851e0602273aeb1699e9e18f0632be0142fe 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -626,10 +626,10 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy)
             }
             switch (exprs[0]->expression.vtype) {
                 case TYPE_FLOAT:
-                    out = (ast_expression*)ast_binary_new(ctx, INSTR_ADD_F, exprs[0], exprs[1]);
+                    out = (ast_expression*)ast_binstore_new(ctx, INSTR_ADD_F, exprs[0], exprs[1]);
                     break;
                 case TYPE_VECTOR:
-                    out = (ast_expression*)ast_binary_new(ctx, INSTR_ADD_V, exprs[0], exprs[1]);
+                    out = (ast_expression*)ast_binstore_new(ctx, INSTR_ADD_V, exprs[0], exprs[1]);
                     break;
                 default:
                     parseerror(parser, "invalid types used in expression: cannot add type %s and %s",