Browse Source

removed spaces

cl-refactor
liana 10 years ago
parent
commit
3012ee73b2
  1. 4
      libsolidity/ExpressionCompiler.cpp
  2. 4
      test/SolidityEndToEndTest.cpp

4
libsolidity/ExpressionCompiler.cpp

@ -812,8 +812,8 @@ void ExpressionCompiler::LValue::setToZero(Expression const& _expression) const
<< errinfo_comment("Stack too deep."));
solAssert(stackDiff <= m_size, "");
for (unsigned i = 0; i < m_size; ++i)
*m_context << u256(0) << eth::swapInstruction(stackDiff + (m_size - i) ) << eth::Instruction::POP;
*m_context << u256(0) << eth::swapInstruction(stackDiff + (m_size - i) )
<< eth::Instruction::POP;
break;
}
case LValue::STORAGE:

4
test/SolidityEndToEndTest.cpp

@ -818,9 +818,7 @@ BOOST_AUTO_TEST_CASE(deleteStruct)
return str.nstr.nestedMapping[index];
}
})";
compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("getToDelete()") == encodeArgs(0));
BOOST_CHECK(callContractFunction("getTopValue()") == encodeArgs(0));
BOOST_CHECK(callContractFunction("getNestedValue()") == encodeArgs(0));
@ -841,7 +839,6 @@ BOOST_AUTO_TEST_CASE(deleteLocal)
res = v;
}
})";
compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("delLocal()") == encodeArgs(0));
}
@ -857,7 +854,6 @@ BOOST_AUTO_TEST_CASE(deleteLocals)
res = w;
}
})";
compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("delLocal()") == encodeArgs(6));
}

Loading…
Cancel
Save