]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codelab.c
Fixed a bug in signed int compares
[cc65] / src / cc65 / codelab.c
index e4fdef46efba139eb678f4b61dcd6834bc75cb28..f4c14ea752ed038bbfaab45b67f6ab8f91803ae6 100644 (file)
@@ -101,11 +101,11 @@ void CL_MoveRefs (CodeLabel* OldLabel, CodeLabel* NewLabel)
  */
 {
     /* Walk through all instructions referencing the old label */
-    unsigned Count = CollCount (&OldLabel->JumpFrom);
+    unsigned Count = CL_GetRefCount (OldLabel);
     while (Count--) {
 
        /* Get the instruction that references the old label */
-       CodeEntry* E = CollAt (&OldLabel->JumpFrom, Count);
+       CodeEntry* E = CL_GetRef (OldLabel, Count);
 
        /* Change the reference to the new label */
        CHECK (E->JumpTo == OldLabel);
@@ -123,7 +123,12 @@ void CL_Output (const CodeLabel* L, FILE* F)
 /* Output the code label to a file */
 {
     fprintf (F, "%s:", L->Name);
+    if (strlen (L->Name) > 6) {
+       /* Label is too long, add a linefeed */
+       fputc ('\n', F);
+    }
 }
 
 
 
+