mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
codegen: truncate booleans before they enter storage
This commit is contained in:
parent
0123e74a2e
commit
fb9babce54
@ -223,7 +223,6 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc
|
|||||||
{
|
{
|
||||||
solAssert(m_dataType->storageBytes() <= 32, "Invalid storage bytes size.");
|
solAssert(m_dataType->storageBytes() <= 32, "Invalid storage bytes size.");
|
||||||
solAssert(m_dataType->storageBytes() > 0, "Invalid storage bytes size.");
|
solAssert(m_dataType->storageBytes() > 0, "Invalid storage bytes size.");
|
||||||
|
|
||||||
if (m_dataType->storageBytes() == 32)
|
if (m_dataType->storageBytes() == 32)
|
||||||
{
|
{
|
||||||
solAssert(m_dataType->sizeOnStack() == 1, "Invalid stack size.");
|
solAssert(m_dataType->sizeOnStack() == 1, "Invalid stack size.");
|
||||||
|
Loading…
Reference in New Issue
Block a user