mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
improved the test
This commit is contained in:
@@ -857,8 +857,9 @@ u256 ArrayType::memorySize() const
|
||||
{
|
||||
solAssert(!isDynamicallySized(), "");
|
||||
solAssert(m_location == DataLocation::Memory, "");
|
||||
|
||||
return m_length * m_baseType->memoryHeadSize();
|
||||
u256 size = m_length * m_baseType->memoryHeadSize();
|
||||
solAssert(size <= numeric_limits<unsigned>::max(), "Array size does not fit unsigned.");
|
||||
return size;
|
||||
}
|
||||
|
||||
TypePointer ArrayType::copyForLocation(DataLocation _location, bool _isPointer) const
|
||||
|
||||
Reference in New Issue
Block a user