From 60bf40f6dbec6618c0e1c659dfe030c9a7d27480 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 19 Mar 2004 10:38:09 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2941 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptind.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.39.5