minor bug fix
This commit is contained in:
parent
d54ed2a83a
commit
7f02ebbeae
2 changed files with 28 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue