Blame SOURCES/0113-Added-std-namespace-to-isnan.patch

714cf1
From f400d8bfb7ea754ea75128ba14d9c7a23eb0527b Mon Sep 17 00:00:00 2001
714cf1
From: Torsten Bronger <bronger@physik.rwth-aachen.de>
714cf1
Date: Sat, 15 Oct 2016 15:02:04 +0200
714cf1
Subject: [PATCH 113/113] Added "std" namespace to "isnan".
714cf1
714cf1
Fixes bug #68.
714cf1
---
714cf1
 tests/test_modifier.cpp | 12 ++++++------
714cf1
 1 file changed, 6 insertions(+), 6 deletions(-)
714cf1
714cf1
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp
714cf1
index f794638..5a2ed0d 100644
714cf1
--- a/tests/test_modifier.cpp
714cf1
+++ b/tests/test_modifier.cpp
714cf1
@@ -102,18 +102,18 @@ void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data)
714cf1
                 LF_MODIFY_GEOMETRY, false);
714cf1
 
714cf1
             if (lfFix->mod->ApplyGeometryDistortion(0,0,1,1,res)) {
714cf1
-                g_assert_false(isnan(res[0]));
714cf1
-                g_assert_false(isnan(res[1]));
714cf1
+                g_assert_false(std::isnan(res[0]));
714cf1
+                g_assert_false(std::isnan(res[1]));
714cf1
             }
714cf1
 
714cf1
             if (lfFix->mod->ApplyGeometryDistortion(in[0],in[1],1,1,res)) {
714cf1
-                g_assert_false(isnan(res[0]));
714cf1
-                g_assert_false(isnan(res[1]));
714cf1
+                g_assert_false(std::isnan(res[0]));
714cf1
+                g_assert_false(std::isnan(res[1]));
714cf1
             }
714cf1
 
714cf1
             if (lfFix->mod->ApplyGeometryDistortion(in2[0],in2[1],1,1,res)) {
714cf1
-                g_assert_false(isnan(res[0]));
714cf1
-                g_assert_false(isnan(res[1]));
714cf1
+                g_assert_false(std::isnan(res[0]));
714cf1
+                g_assert_false(std::isnan(res[1]));
714cf1
             }
714cf1
 
714cf1
             delete lfFix->mod;
714cf1
-- 
714cf1
2.7.4
714cf1