Some tweaks.

This commit is contained in:
chriseth 2022-06-23 16:03:36 +02:00
parent 0e0518e5ce
commit ae6f8e25b6
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ inline std::string toLower(std::string _s)
/// @return true if _c is a decimal digit character, false otherwise
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

View File

@ -70,7 +70,7 @@ public:
}
if (token() == ')')
advance();
return {subExpressions};
return {move(subExpressions)};
}
else
return {parseToken()};