From: cuz Date: Fri, 19 Mar 2004 10:38:09 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~881 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60bf40f6dbec6618c0e1c659dfe030c9a7d27480;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2941 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index a6043d0ab..9e98c8976 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -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; } }