diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-14 20:01:50 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-14 20:01:50 +0300 |
commit | 960c2252136b3a54d34317b77921788110784dae (patch) | |
tree | 0cd80ac43e0495d98aadb5eb707641a40cc7f8c9 /server/lexer | |
parent | formatting fixes (diff) | |
download | math-server-960c2252136b3a54d34317b77921788110784dae.tar.gz math-server-960c2252136b3a54d34317b77921788110784dae.zip |
remove unnecessary static-s
Diffstat (limited to '')
-rw-r--r-- | server/lexer/token.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lexer/token.cpp b/server/lexer/token.cpp index 9bcd9f3..5516bde 100644 --- a/server/lexer/token.cpp +++ b/server/lexer/token.cpp @@ -15,15 +15,15 @@ namespace math::server::lexer { namespace { -static constexpr double nan() { +constexpr double nan() { return std::numeric_limits<double>::quiet_NaN(); } -static bool is_nan(double x) { +bool is_nan(double x) { return std::isnan(x); } -static bool numbers_equal(double x, double y) { +bool numbers_equal(double x, double y) { if (is_nan(x) && is_nan(y)) { return true; } |