aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-10 22:38:08 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-12-01 00:41:51 +0800
commitfb9babce54f76251b9616f192822e0c015411159 (patch)
tree92790d35d3e2e18405056318473e58695c33e28b /libsolidity
parent0123e74a2eeac35bfa55886d0c6db391c07e7ec6 (diff)
downloaddexon-solidity-fb9babce54f76251b9616f192822e0c015411159.tar.gz
dexon-solidity-fb9babce54f76251b9616f192822e0c015411159.tar.zst
dexon-solidity-fb9babce54f76251b9616f192822e0c015411159.zip
codegen: truncate booleans before they enter storage
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/LValue.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/libsolidity/codegen/LValue.cpp b/libsolidity/codegen/LValue.cpp
index 23fe2d4e..b9e141d8 100644
--- a/libsolidity/codegen/LValue.cpp
+++ b/libsolidity/codegen/LValue.cpp
@@ -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.");