mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fix some format typos
This commit is contained in:
parent
804ea43782
commit
808c3f3df5
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user