* mmap.cc (list::erase): Increment loop counter.

(map::erase): Likewise.
This commit is contained in:
DJ Delorie 2000-05-11 22:30:45 +00:00
parent eeefccfcd1
commit cfe11d7465
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-05-11 Mumit Khan <khan@xraylith.wisc.edu>
* mmap.cc (list::erase): Increment loop counter.
(map::erase): Likewise.
Thu May 11 00:54:00 2000 Charles Wilson <cwilson@ece.gatech.edu>
* cygwin.din: insure that regsub() is included in

View File

@ -83,7 +83,7 @@ list::add_record (mmap_record r)
void
list::erase (int i)
{
while (i < nrecs-1)
for (; i < nrecs-1; i++)
recs[i] = recs[i+1];
nrecs--;
}
@ -137,7 +137,7 @@ map::add_list (list *l, int fd)
void
map::erase (int i)
{
while (i < nlists-1)
for (; i < nlists-1; i++)
lists[i] = lists[i+1];
nlists--;
}