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()
|
bool CompilerStack::parse()
|
||||||
{
|
{
|
||||||
//reset
|
//reset
|
||||||
if(m_stackState != SourcesSet)
|
if (m_stackState != SourcesSet)
|
||||||
return false;
|
return false;
|
||||||
m_errorReporter.clear();
|
m_errorReporter.clear();
|
||||||
ASTNode::resetID();
|
ASTNode::resetID();
|
||||||
|
@ -343,7 +343,7 @@ BOOST_AUTO_TEST_CASE(bool_simple)
|
|||||||
text = R"(
|
text = R"(
|
||||||
contract C {
|
contract C {
|
||||||
function f(bool x) public pure {
|
function f(bool x) public pure {
|
||||||
if(x) {
|
if (x) {
|
||||||
assert(x);
|
assert(x);
|
||||||
} else {
|
} else {
|
||||||
assert(!x);
|
assert(!x);
|
||||||
@ -380,7 +380,7 @@ BOOST_AUTO_TEST_CASE(bool_int_mixed)
|
|||||||
contract C {
|
contract C {
|
||||||
function f(bool x) public pure {
|
function f(bool x) public pure {
|
||||||
uint a;
|
uint a;
|
||||||
if(x)
|
if (x)
|
||||||
a = 1;
|
a = 1;
|
||||||
assert(!x || a > 0);
|
assert(!x || a > 0);
|
||||||
}
|
}
|
||||||
|
@ -352,7 +352,7 @@ BOOST_AUTO_TEST_CASE(incorrect_storage_access_bug)
|
|||||||
mapping(uint => uint) data;
|
mapping(uint => uint) data;
|
||||||
function f() public returns (uint)
|
function f() public returns (uint)
|
||||||
{
|
{
|
||||||
if(data[now] == 0)
|
if (data[now] == 0)
|
||||||
data[uint(-7)] = 5;
|
data[uint(-7)] = 5;
|
||||||
return data[now];
|
return data[now];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user