Fix compiler error

This commit is contained in:
Daniel Marjamäki 2018-06-23 16:07:02 +02:00
parent 911020f601
commit ee335e5151
1 changed files with 1 additions and 1 deletions

View File

@ -1338,7 +1338,7 @@ static std::size_t estimateSize(const Type* type, const Settings* settings, cons
else if (var.valueType()->type == ValueType::Type::CONTAINER)
size = 3 * settings->sizeof_pointer; // Just guess
else
size = symbolDatabase->sizeOfType(i->typeStartToken());
size = symbolDatabase->sizeOfType(var.typeStartToken());
if (var.isArray())
cumulatedSize += size * var.dimension(0);