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