]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 19 Mar 2004 10:38:09 +0000 (10:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 19 Mar 2004 10:38:09 +0000 (10:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2941 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index a6043d0ab01421137f38c86377ee4b4c0b6b3e8a..9e98c8976716e1223c224f6da6771a691242c1e3 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2001-2003 Ullrich von Bassewitz                                       */
+/* (C) 2001-2004 Ullrich von Bassewitz                                       */
 /*               Römerstraße 52                                              */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
@@ -749,8 +749,9 @@ unsigned OptUnusedLoads (CodeSeg* S)
                /* Register value is not used, remove the load */
                CS_DelEntry (S, I);
 
-               /* Remember, we had changes */
+               /* Remember, we had changes. Account the deleted entry in I. */
                ++Changes;
+               --I;
 
            }
        }