mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Using auto to avoid type name duplication.
This commit is contained in:
parent
565d0cd4eb
commit
26d454d8a8
@ -941,8 +941,8 @@ void CompilerUtils::convertType(
|
|||||||
case Type::Category::Array:
|
case Type::Category::Array:
|
||||||
{
|
{
|
||||||
solAssert(targetTypeCategory == stackTypeCategory, "");
|
solAssert(targetTypeCategory == stackTypeCategory, "");
|
||||||
ArrayType const& typeOnStack = dynamic_cast<ArrayType const&>(_typeOnStack);
|
auto const& typeOnStack = dynamic_cast<ArrayType const&>(_typeOnStack);
|
||||||
ArrayType const& targetType = dynamic_cast<ArrayType const&>(_targetType);
|
auto const& targetType = dynamic_cast<ArrayType const&>(_targetType);
|
||||||
switch (targetType.location())
|
switch (targetType.location())
|
||||||
{
|
{
|
||||||
case DataLocation::Storage:
|
case DataLocation::Storage:
|
||||||
|
Loading…
Reference in New Issue
Block a user