mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Handle proper expression type assignment
This commit is contained in:
parent
cc69370575
commit
2cf5046d38
1 changed files with 2 additions and 2 deletions
4
ast.c
4
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;
|
||||
|
|
Loading…
Reference in a new issue