diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-11-24 18:57:28 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-12-01 00:42:03 +0800 |
commit | 547deec4be55fc10b44de9ff92bb2d598d5b04f5 (patch) | |
tree | 14f73907ce89d7c4c54a091040cc08d0c88d5f5c /libsolidity | |
parent | 7959ee49beb664238e58dcb589f386b2dff7438c (diff) | |
download | dexon-solidity-547deec4be55fc10b44de9ff92bb2d598d5b04f5.tar.gz 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.cpp | 4 |
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; } |