From 1b29b536f370971323099d7d4cf88cc0d387485f Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 8 Aug 2008 16:47:43 +0000 Subject: [PATCH] Fixed a bug: Structure assignment was broken. git-svn-id: svn://svn.cc65.org/cc65/trunk@3884 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/assignment.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cc65/assignment.c b/src/cc65/assignment.c index 7d7f8c6df..d4e9d61fd 100644 --- a/src/cc65/assignment.c +++ b/src/cc65/assignment.c @@ -96,8 +96,9 @@ void Assignment (ExprDesc* Expr) } if (UseReg) { PushAddr (Expr); - } else { - LoadExpr (CF_NONE, Expr); + } else { + ED_MakeRVal (Expr); + LoadExpr (CF_NONE, Expr); g_push (CF_PTR | CF_UNSIGNED, 0); } -- 2.39.5