Skip to content

Commit

Permalink
minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Oct 24, 2012
1 parent d501d9d commit 3e75d0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MemoryRule.cpp
Expand Up @@ -67,8 +67,9 @@ void MemoryRule::ClearAddressRanges()
bool MemoryRule::IsAddressInRanges(u16 address)
{
AddressRangeVectorIterator it;
AddressRangeVectorIterator end = m_Ranges.end();

for (it = m_Ranges.begin(); it < m_Ranges.end(); it++)
for (it = m_Ranges.begin(); it < end; it++)
{
if ((address >= (*it).minAddress) && (address <= (*it).maxAddress))
return true;
Expand Down

0 comments on commit 3e75d0c

Please sign in to comment.