mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Use the correct type when generating a move expression.
This commit is contained in:
parent
2129eaaf20
commit
899af3119b
1 changed files with 1 additions and 1 deletions
|
@ -2519,7 +2519,7 @@ assign_expr (expr_t *e1, expr_t *e2)
|
|||
if (is_struct (get_type (e1))) {
|
||||
e1 = address_expr (e1, 0, 0);
|
||||
e2 = address_expr (e2, 0, 0);
|
||||
return new_move_expr (e1, e2, get_type (e2), 1);
|
||||
return new_move_expr (e1, e2, t1, 1);
|
||||
}
|
||||
if (e1->type == ex_expr) {
|
||||
if (get_type (e1->e.expr.e1) == &type_entity) {
|
||||
|
|
Loading…
Reference in a new issue