From: uz Date: Fri, 8 Aug 2008 16:47:43 +0000 (+0000) Subject: Fixed a bug: Structure assignment was broken. X-Git-Tag: V2.13.0rc1~371 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b29b536f370971323099d7d4cf88cc0d387485f;p=cc65 Fixed a bug: Structure assignment was broken. git-svn-id: svn://svn.cc65.org/cc65/trunk@3884 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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); }