1
0
forked from fsfw/fsfw

important bugfixes

This commit is contained in:
2020-10-15 00:54:00 +02:00
parent 64bed475fe
commit 1ee01ffcdb
4 changed files with 13 additions and 23 deletions

View File

@ -9,8 +9,8 @@ LocalPool::LocalPool(object_id_t setObjectId, const LocalPoolConfig poolConfig,
spillsToHigherPools(spillsToHigherPools) {
uint16_t index = 0;
for (const auto& currentPoolConfig: poolConfig) {
this->elementSizes[index] = currentPoolConfig.first;
this->numberOfElements[index] = currentPoolConfig.second;
this->numberOfElements[index] = currentPoolConfig.first;
this->elementSizes[index] = currentPoolConfig.second;
store[index] = std::vector<uint8_t>(
numberOfElements[index] * elementSizes[index]);
sizeLists[index] = std::vector<size_type>(numberOfElements[index]);