mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 11:11:15 +02:00
Reinitializing list's begin iterator after few elements were erased from the head
This commit is contained in:
@ -544,7 +544,7 @@ public:
|
|||||||
{
|
{
|
||||||
while (end() - pc >= (long)b.size() && memcmp(&pc[0], &b[0], b.size()) == 0)
|
while (end() - pc >= (long)b.size() && memcmp(&pc[0], &b[0], b.size()) == 0)
|
||||||
{
|
{
|
||||||
erase(pc, pc + b.size());
|
pc = erase(pc, pc + b.size());
|
||||||
++nFound;
|
++nFound;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user