DataBlockCache: Fix crash in cache invalidation

Fixes #33
This commit is contained in:
Martin Herkt 2019-02-14 14:52:27 +01:00 committed by Ryan Lucia
parent 75fc5f38d7
commit a78f5d2760
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ public:
}
// Remove old entries until we're under the max size
for (auto it = age.rbegin(); size > max_size && it != age.rend(); )
KillMacroBlock(**it++);
for (auto it = age.rbegin(); size > max_size && it != age.rend(); it++)
KillMacroBlock(**it);
}
/// @brief Obtain a data block from the cache