From: Wolfgang (Blub) Bumiller Date: Tue, 14 Aug 2012 15:27:52 +0000 (+0200) Subject: make the += operator use binstore actually, currently it was acting like a regular... X-Git-Tag: 0.1-rc1~293 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3544cfa2b2a3dcac9c3f3250e6ee17a558a33d30;p=xonotic%2Fgmqcc.git make the += operator use binstore actually, currently it was acting like a regular plus --- diff --git a/parser.c b/parser.c index 0eb1d68..72b6851 100644 --- 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",