From 821081c9c89b874a6e728ea639a88f233b826a67 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 13 Dec 2012 14:05:24 +0900 Subject: [PATCH] Use the desination type for moves in assign_expr. for = nil; the source type is void and thus probably the wrong size. --- 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 c0c1d935d..c343833b7 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -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);