]> git.sur5r.net Git - cc65/blobdiff - src/da65/main.c
Fixed an error
[cc65] / src / da65 / main.c
index 83b1784e8b7f62abab9d97115d70f42ab41b4496..6cc5e459f4cbd6c38454ecc29ac7c404481f44c8 100644 (file)
@@ -408,7 +408,10 @@ static void OneOpcode (unsigned RemainingBytes)
              */
             if (D->Size <= RemainingBytes) {
                 /* Output labels within the next insn */
-                ForwardLabels (D->Size);
+                unsigned I;
+                for (I = 1; I < D->Size; ++I) {
+                    ForwardLabel (I);
+                }
                 /* Output the insn */
                 D->Handler (D);
                 PC += D->Size;