mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update Types.cpp
This commit is contained in:
parent
4e15a39107
commit
a8505e598f
12
Types.cpp
12
Types.cpp
@ -376,12 +376,12 @@ bool IntegerConstantType::isImplicitlyConvertibleTo(Type const& _convertTo) cons
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (_convertTo.getCategory() == Category::FixedBytes)
|
else if (_convertTo.getCategory() == Category::FixedBytes)
|
||||||
{
|
{
|
||||||
FixedBytesType const& fixedBytes = dynamic_cast<FixedBytesType const&>(_convertTo);
|
FixedBytesType const& fixedBytes = dynamic_cast<FixedBytesType const&>(_convertTo);
|
||||||
return fixedBytes.getNumBytes() * 8 >= getIntegerType()->getNumBits();
|
return fixedBytes.getNumBytes() * 8 >= getIntegerType()->getNumBits();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IntegerConstantType::isExplicitlyConvertibleTo(Type const& _convertTo) const
|
bool IntegerConstantType::isExplicitlyConvertibleTo(Type const& _convertTo) const
|
||||||
|
Loading…
Reference in New Issue
Block a user