minor bug fix

This commit is contained in:
ShikyC 2016-03-28 00:29:10 +08:00
parent d54ed2a83a
commit 7f02ebbeae
2 changed files with 28 additions and 15 deletions

View file

@ -32,8 +32,8 @@ Cache <T, L>::Cache () {
template <class T, int L>
void Cache <T, L>::put (T value) {
data_ [current_] = value;
current_ = (current_ + 1) % L;
data_ [current_] = value;
}
template <class T, int L>