aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-24 18:57:28 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-12-01 00:42:03 +0800
commit547deec4be55fc10b44de9ff92bb2d598d5b04f5 (patch)
tree14f73907ce89d7c4c54a091040cc08d0c88d5f5c /libsolidity
parent7959ee49beb664238e58dcb589f386b2dff7438c (diff)
downloaddexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar
dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar.gz
dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar.bz2
dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar.lz
dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar.xz
dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar.zst
dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.zip
codegen: clean any data from the input
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/CompilerUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp
index ce5bb1d2..6763e995 100644
--- a/libsolidity/codegen/CompilerUtils.cpp
+++ b/libsolidity/codegen/CompilerUtils.cpp
@@ -925,8 +925,8 @@ unsigned CompilerUtils::loadFromMemoryHelper(Type const& _type, bool _fromCallda
if (leftAligned)
m_context << shiftFactor << Instruction::MUL;
}
- if (_fromCalldata && _type.category() == Type::Category::Bool)
- m_context << Instruction::ISZERO << Instruction::ISZERO;
+ if (_fromCalldata)
+ convertType(_type, _type, true);
return numBytes;
}