fix some format typos

This commit is contained in:
liangdzou 2018-09-17 22:13:21 +08:00
parent 804ea43782
commit 808c3f3df5
3 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ bool CompilerStack::addSource(string const& _name, string const& _content, bool
bool CompilerStack::parse()
{
//reset
if(m_stackState != SourcesSet)
if (m_stackState != SourcesSet)
return false;
m_errorReporter.clear();
ASTNode::resetID();

View File

@ -343,7 +343,7 @@ BOOST_AUTO_TEST_CASE(bool_simple)
text = R"(
contract C {
function f(bool x) public pure {
if(x) {
if (x) {
assert(x);
} else {
assert(!x);
@ -380,7 +380,7 @@ BOOST_AUTO_TEST_CASE(bool_int_mixed)
contract C {
function f(bool x) public pure {
uint a;
if(x)
if (x)
a = 1;
assert(!x || a > 0);
}

View File

@ -352,7 +352,7 @@ BOOST_AUTO_TEST_CASE(incorrect_storage_access_bug)
mapping(uint => uint) data;
function f() public returns (uint)
{
if(data[now] == 0)
if (data[now] == 0)
data[uint(-7)] = 5;
return data[now];
}