diff options
| author | Pjotr Prins | 2017-11-22 10:25:47 +0000 |
|---|---|---|
| committer | Pjotr Prins | 2017-11-22 10:25:47 +0000 |
| commit | 385dd86c0d58cdba4eefd4e39694ee47ff3ab3e6 (patch) | |
| tree | 5a3efd63957dd5bc2a8bb70fc3669425651de73a /src/mathfunc.cpp | |
| parent | 262af77b80267d65324d9a2de395022b9bbcb9d1 (diff) | |
| download | pangemma-385dd86c0d58cdba4eefd4e39694ee47ff3ab3e6.tar.gz | |
Remove compiler warnings and add check is_nan
Diffstat (limited to 'src/mathfunc.cpp')
| -rw-r--r-- | src/mathfunc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mathfunc.cpp b/src/mathfunc.cpp index 908a52d..d3804dd 100644 --- a/src/mathfunc.cpp +++ b/src/mathfunc.cpp @@ -58,7 +58,7 @@ using namespace std; bool has_nan(const vector<double> v) { for (const auto& e: v) { - if (std::isnan(e)) + if (is_nan(e)) return true; } return false; |
