Skip to content

Commit

Permalink
Cleanup is not needed for assert()
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Feb 10, 2017
1 parent 39cd221 commit 8a3d4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsolidity/codegen/ExpressionCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
case Location::Assert:
{
arguments.front()->accept(*this);
utils().convertType(*arguments.front()->annotation().type, *function.parameterTypes().front(), true);
utils().convertType(*arguments.front()->annotation().type, *function.parameterTypes().front(), false);
m_context << Instruction::ISZERO;
m_context.appendConditionalJumpTo(m_context.errorTag());
break;
Expand Down

0 comments on commit 8a3d4a0

Please sign in to comment.