mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use range-based erase.
This commit is contained in:
parent
bebe76828a
commit
1dfcb47350
@ -151,8 +151,10 @@ KnownState::StoreOperation KnownState::feedItem(AssemblyItem const& _item, bool
|
||||
);
|
||||
}
|
||||
}
|
||||
for (int p = m_stackHeight; p > m_stackHeight + _item.deposit(); --p)
|
||||
m_stackElements.erase(p);
|
||||
m_stackElements.erase(
|
||||
m_stackElements.upper_bound(m_stackHeight + _item.deposit()),
|
||||
m_stackElements.end()
|
||||
);
|
||||
m_stackHeight += _item.deposit();
|
||||
}
|
||||
return op;
|
||||
|
Loading…
Reference in New Issue
Block a user