diff options
author | chriseth <chris@ethereum.org> | 2018-09-17 23:47:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 23:47:35 +0800 |
commit | 47b8d998d13ad7365a897fc52496bf5fa1222040 (patch) | |
tree | 528418efe63f8ac3de9c1c2d7cba9b903440f002 | |
parent | da90bc02247dbd500de191135322474e34c5874c (diff) | |
parent | 808c3f3df58d32c5d6056ece7da23db41d617c2b (diff) | |
download | dexon-solidity-47b8d998d13ad7365a897fc52496bf5fa1222040.tar.gz dexon-solidity-47b8d998d13ad7365a897fc52496bf5fa1222040.tar.zst dexon-solidity-47b8d998d13ad7365a897fc52496bf5fa1222040.zip |
Merge pull request #4999 from liangdzou/fix_typo
fix some code format problems
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 2 | ||||
-rw-r--r-- | test/libsolidity/SMTChecker.cpp | 4 | ||||
-rw-r--r-- | test/libsolidity/SolidityOptimizer.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index e800b278..adf59a9c 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -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(); diff --git a/test/libsolidity/SMTChecker.cpp b/test/libsolidity/SMTChecker.cpp index 736aa46c..1f6f765f 100644 --- a/test/libsolidity/SMTChecker.cpp +++ b/test/libsolidity/SMTChecker.cpp @@ -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); } diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp index 1c80e82e..f925d36e 100644 --- a/test/libsolidity/SolidityOptimizer.cpp +++ b/test/libsolidity/SolidityOptimizer.cpp @@ -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]; } |