codegen: truncate booleans before they enter storage

This commit is contained in:
Yoichi Hirai
2016-11-30 17:41:51 +01:00
parent 0123e74a2e
commit fb9babce54
-1
View File
@@ -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() > 0, "Invalid storage bytes size.");
if (m_dataType->storageBytes() == 32)
{
solAssert(m_dataType->sizeOnStack() == 1, "Invalid stack size.");