From 899af3119b5a14c0100435516e64da831c2db904 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 10 Mar 2011 19:30:21 +0900 Subject: [PATCH] Use the correct type when generating a move expression. --- tools/qfcc/source/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 36a0281d0..f5847d0a3 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -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) {