aboutsummaryrefslogtreecommitdiff
path: root/src/mathfunc.cpp
diff options
context:
space:
mode:
authorPjotr Prins2017-11-22 10:25:47 +0000
committerPjotr Prins2017-11-22 10:25:47 +0000
commit385dd86c0d58cdba4eefd4e39694ee47ff3ab3e6 (patch)
tree5a3efd63957dd5bc2a8bb70fc3669425651de73a /src/mathfunc.cpp
parent262af77b80267d65324d9a2de395022b9bbcb9d1 (diff)
downloadpangemma-385dd86c0d58cdba4eefd4e39694ee47ff3ab3e6.tar.gz
Remove compiler warnings and add check is_nan
Diffstat (limited to 'src/mathfunc.cpp')
-rw-r--r--src/mathfunc.cpp2
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;