Browse Source

Use range-based erase.

cl-refactor
chriseth 10 years ago
parent
commit
365372799e
  1. 6
      libevmasm/KnownState.cpp

6
libevmasm/KnownState.cpp

@ -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(
m_stackElements.erase(p); m_stackElements.upper_bound(m_stackHeight + _item.deposit()),
m_stackElements.end()
);
m_stackHeight += _item.deposit(); m_stackHeight += _item.deposit();
} }
return op; return op;

Loading…
Cancel
Save