]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug: Structure assignment was broken.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 8 Aug 2008 16:47:43 +0000 (16:47 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 8 Aug 2008 16:47:43 +0000 (16:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3884 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/assignment.c

index 7d7f8c6df07dbb5584b1a3c0f5aabaf508633ccf..d4e9d61fdc3f74c1ae1d42fbab6105b2d79a2037 100644 (file)
@@ -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);
         }