From 2cf5046d3807551365180a73c923762182f7bc83 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 4 Oct 2013 06:53:09 -0400 Subject: [PATCH] Handle proper expression type assignment --- ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ast.c b/ast.c index 598cf5f..5ea6d93 100644 --- a/ast.c +++ b/ast.c @@ -467,9 +467,9 @@ ast_binary* ast_binary_new(lex_ctx_t ctx, int op, else self->expression.vtype = TYPE_FLOAT; } - else if (op == INSTR_BITAND || op == INSTR_BITOR) + else if (op == INSTR_BITAND || op == INSTR_BITOR || op == INSTR_MUL_F) self->expression.vtype = TYPE_FLOAT; - else if (op == INSTR_MUL_FV || op == INSTR_MUL_FV) + else if (op >= INSTR_MUL_V && op <= INSTR_MUL_VF) self->expression.vtype = TYPE_VECTOR; else self->expression.vtype = left->vtype;