* Fixed va_args for the z80
[fw/sdcc] / src / SDCCopt.c
index c6160ccf28c5bd10d48b2a5f93556b96041f1f23..8ed9c5979396b7cc4f29439cc08f03f1e93bf32d 100644 (file)
@@ -386,7 +386,7 @@ found:
        {
          newic = newiCode (IPUSH, IC_RIGHT (ic), NULL);
          newic->parmPush = 1;
-         bytesPushed=getSize(type);
+         bytesPushed += getSize(type);
        }
       addiCodeToeBBlock (ebp, newic, ip);
       newic->lineno = lineno;
@@ -398,7 +398,7 @@ found:
        {
          newic = newiCode (IPUSH, IC_LEFT (ic), NULL);
          newic->parmPush = 1;
-         bytesPushed=getSize(type);
+         bytesPushed += getSize(type);
        }
       addiCodeToeBBlock (ebp, newic, ip);
       newic->lineno = lineno;