codegen: clean any data from the input

This commit is contained in:
Yoichi Hirai
2016-11-30 17:42:03 +01:00
parent 7959ee49be
commit 547deec4be
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -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;
}