]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codeent.c
- fixed an old #include guard typo
[cc65] / src / cc65 / codeent.c
index 7372af338c19f18ded64acfbc9f0829e5fdf4415..e1ab965bc10c819ca2fdeaaaf8b631edf54f217b 100644 (file)
@@ -412,7 +412,7 @@ int CE_IsKnownImm (const CodeEntry* E, unsigned long Num)
 
 
 
-int CE_UseLoadFlags (const CodeEntry* E)
+int CE_UseLoadFlags (CodeEntry* E)
 /* Return true if the instruction uses any flags that are set by a load of
  * a register (N and Z).
  */
@@ -427,7 +427,7 @@ int CE_UseLoadFlags (const CodeEntry* E)
         while (E->Info & OF_UBRA) {
 
             /* Remember the entry so we can detect loops */
-            CollAppend (&C, (void*) E);
+            CollAppend (&C, E);
 
             /* Check the target */
             if (E->JumpTo == 0 || CollIndex (&C, E->JumpTo->Owner) >= 0) {
@@ -1490,9 +1490,3 @@ void CE_Output (const CodeEntry* E)
     /* Terminate the line */
     WriteOutput ("\n");
 }
-
-
-
-
-
-