mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disable FixedBytesType(0) aka bytes0
This commit is contained in:
parent
1604a996fe
commit
e0b178e1c5
@ -1283,8 +1283,10 @@ shared_ptr<FixedBytesType> FixedBytesType::smallestTypeForLiteral(string const&
|
||||
|
||||
FixedBytesType::FixedBytesType(int _bytes): m_bytes(_bytes)
|
||||
{
|
||||
solAssert(m_bytes >= 0 && m_bytes <= 32,
|
||||
"Invalid byte number for fixed bytes type: " + dev::toString(m_bytes));
|
||||
solAssert(
|
||||
m_bytes > 0 && m_bytes <= 32,
|
||||
"Invalid byte number for fixed bytes type: " + dev::toString(m_bytes)
|
||||
);
|
||||
}
|
||||
|
||||
bool FixedBytesType::isImplicitlyConvertibleTo(Type const& _convertTo) const
|
||||
|
Loading…
Reference in New Issue
Block a user