* 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>
|
Thu May 11 00:54:00 2000 Charles Wilson <cwilson@ece.gatech.edu>
|
||||||
|
|
||||||
* cygwin.din: insure that regsub() is included in
|
* cygwin.din: insure that regsub() is included in
|
||||||
|
|
|
@ -83,7 +83,7 @@ list::add_record (mmap_record r)
|
||||||
void
|
void
|
||||||
list::erase (int i)
|
list::erase (int i)
|
||||||
{
|
{
|
||||||
while (i < nrecs-1)
|
for (; i < nrecs-1; i++)
|
||||||
recs[i] = recs[i+1];
|
recs[i] = recs[i+1];
|
||||||
nrecs--;
|
nrecs--;
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ map::add_list (list *l, int fd)
|
||||||
void
|
void
|
||||||
map::erase (int i)
|
map::erase (int i)
|
||||||
{
|
{
|
||||||
while (i < nlists-1)
|
for (; i < nlists-1; i++)
|
||||||
lists[i] = lists[i+1];
|
lists[i] = lists[i+1];
|
||||||
nlists--;
|
nlists--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue