codegen: truncate booleans before they enter storage

This commit is contained in:
Yoichi Hirai 2016-11-10 15:38:08 +01:00
parent 0123e74a2e
commit fb9babce54
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

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.");