* mmap.cc (list::erase): Increment loop counter.
(map::erase): Likewise.
This commit is contained in:
parent
eeefccfcd1
commit
cfe11d7465
@ -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
|
||||
|
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user