Skip to content

Conversation

@j-sun
Copy link

@j-sun j-sun commented Jan 23, 2013

Iterator comparisons in the ChunkMap caused exceptions to be thrown; changed iteration to go by map.size(). Done in VS2012

// releaseMap frees the iterator, so use prev
ChunkMap::const_iterator it = chunks.begin();
ChunkMap::const_iterator prev;
while (chunks.size() != 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider: while (!chunks.empty())
Instead of: while (chunks.size() != 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants