From ee335e5151ae5f7044fac6c5d5591e422b3dafc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 23 Jun 2018 16:07:02 +0200 Subject: [PATCH] Fix compiler error --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 8beb83de9..c5e4b847b 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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);