From 26d454d8a830b145da52c9cc12293f9f3aeb6e27 Mon Sep 17 00:00:00 2001 From: Djordje Mijovic Date: Wed, 25 Nov 2020 14:15:51 +0100 Subject: [PATCH] Using auto to avoid type name duplication. --- libsolidity/codegen/CompilerUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index 31ff4bd52..fbf7b75eb 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -941,8 +941,8 @@ void CompilerUtils::convertType( case Type::Category::Array: { solAssert(targetTypeCategory == stackTypeCategory, ""); - ArrayType const& typeOnStack = dynamic_cast(_typeOnStack); - ArrayType const& targetType = dynamic_cast(_targetType); + auto const& typeOnStack = dynamic_cast(_typeOnStack); + auto const& targetType = dynamic_cast(_targetType); switch (targetType.location()) { case DataLocation::Storage: