mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some tweaks.
This commit is contained in:
parent
0e0518e5ce
commit
ae6f8e25b6
@ -231,7 +231,7 @@ inline std::string toLower(std::string _s)
|
|||||||
/// @return true if _c is a decimal digit character, false otherwise
|
/// @return true if _c is a decimal digit character, false otherwise
|
||||||
inline bool isDigit(char _c)
|
inline bool isDigit(char _c)
|
||||||
{
|
{
|
||||||
return isdigit(_c, std::locale::classic());
|
return '0' <= _c && _c <= '9';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks if character is printable using classic "C" locale
|
// Checks if character is printable using classic "C" locale
|
||||||
|
@ -70,7 +70,7 @@ public:
|
|||||||
}
|
}
|
||||||
if (token() == ')')
|
if (token() == ')')
|
||||||
advance();
|
advance();
|
||||||
return {subExpressions};
|
return {move(subExpressions)};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return {parseToken()};
|
return {parseToken()};
|
||||||
|
Loading…
Reference in New Issue
Block a user