mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Error when the assignop for an assignment is invalid, eg. when trying to assign arrays
This commit is contained in:
parent
c2857a22e3
commit
f0687adbaa
1 changed files with 3 additions and 1 deletions
4
parser.c
4
parser.c
|
@ -926,7 +926,9 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
|
|||
}
|
||||
else
|
||||
assignop = type_storep_instr[exprs[0]->expression.vtype];
|
||||
if (!ast_compare_type(field->expression.next, exprs[1])) {
|
||||
if (assignop == AINSTR_END ||
|
||||
!ast_compare_type(field->expression.next, exprs[1]))
|
||||
{
|
||||
ast_type_to_string(field->expression.next, ty1, sizeof(ty1));
|
||||
ast_type_to_string(exprs[1], ty2, sizeof(ty2));
|
||||
if (OPTS_FLAG(ASSIGN_FUNCTION_TYPES) &&
|
||||
|
|
Loading…
Reference in a new issue