mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
changed 1 to 0 in invalid argument catch block
This commit is contained in:
parent
93114949a3
commit
2738f4066a
@ -121,7 +121,7 @@ unsigned Token::extractUnsigned(string const& _literal)
|
||||
}
|
||||
catch (invalid_argument& e)
|
||||
{
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
tuple<Token::Value, unsigned short, unsigned short> Token::fromIdentifierOrKeyword(string const& _literal)
|
||||
|
@ -309,7 +309,7 @@ private:
|
||||
// if out_of_range error is thrown, they returns 0s, therefore securing
|
||||
// the variable's identity as an identifier. If an invalid conversion
|
||||
// error is thrown (usually in the case of grabbing N from a fixed type)
|
||||
// then a 1 is thrown to purposely ensure that it will declare itself as an identifier
|
||||
// then a 0 is thrown to purposely ensure that it will declare itself as an identifier
|
||||
static unsigned extractUnsigned(std::string const& _literal);
|
||||
// @returns the keyword with name @a _name or Token::Identifier of no such keyword exists.
|
||||
static Token::Value keywordByName(std::string const& _name);
|
||||
|
Loading…
Reference in New Issue
Block a user