mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Use the desination type for moves in assign_expr.
for <struct> = nil; the source type is void and thus probably the wrong size.
This commit is contained in:
parent
503154257c
commit
821081c9c8
1 changed files with 1 additions and 1 deletions
|
@ -2637,7 +2637,7 @@ assign_expr (expr_t *e1, expr_t *e2)
|
|||
}
|
||||
}
|
||||
if (is_struct (get_type (e1))) {
|
||||
return new_move_expr (e1, e2, get_type (e2), 0);
|
||||
return new_move_expr (e1, e2, get_type (e1), 0);
|
||||
}
|
||||
if (!type)
|
||||
internal_error (e1, 0);
|
||||
|
|
Loading…
Reference in a new issue