Skip to content

Commit

Permalink
Set zeros in last positions when 8 values are added in assocaitiveCache
Browse files Browse the repository at this point in the history
  • Loading branch information
rickb80 committed Aug 20, 2023
1 parent d9b74f7 commit b45acf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hashdb/database_associative_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ void DatabaseMTAssociativeCache::addKeyValue(Goldilocks::Element (&key)[4], cons
values[cacheIndexValue + 9] = value[9];
values[cacheIndexValue + 10] = value[10];
values[cacheIndexValue + 11] = value[11];
}else{
values[cacheIndexValue + 8] = Goldilocks::zero();
values[cacheIndexValue + 9] = Goldilocks::zero();
values[cacheIndexValue + 10] = Goldilocks::zero();
values[cacheIndexValue + 11] = Goldilocks::zero();
}
//
// Forced index insertion
Expand Down

0 comments on commit b45acf1

Please sign in to comment.