Merge pull request #4999 from liangdzou/fix_typo

fix some code format problems
This commit is contained in:
chriseth 2018-09-17 17:47:35 +02:00 committed by GitHub
commit 47b8d998d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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];
}