You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
From f400d8bfb7ea754ea75128ba14d9c7a23eb0527b Mon Sep 17 00:00:00 2001 |
|
From: Torsten Bronger <bronger@physik.rwth-aachen.de> |
|
Date: Sat, 15 Oct 2016 15:02:04 +0200 |
|
Subject: [PATCH 113/113] Added "std" namespace to "isnan". |
|
|
|
Fixes bug #68. |
|
--- |
|
tests/test_modifier.cpp | 12 ++++++------ |
|
1 file changed, 6 insertions(+), 6 deletions(-) |
|
|
|
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp |
|
index f794638..5a2ed0d 100644 |
|
--- a/tests/test_modifier.cpp |
|
+++ b/tests/test_modifier.cpp |
|
@@ -102,18 +102,18 @@ void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data) |
|
LF_MODIFY_GEOMETRY, false); |
|
|
|
if (lfFix->mod->ApplyGeometryDistortion(0,0,1,1,res)) { |
|
- g_assert_false(isnan(res[0])); |
|
- g_assert_false(isnan(res[1])); |
|
+ g_assert_false(std::isnan(res[0])); |
|
+ g_assert_false(std::isnan(res[1])); |
|
} |
|
|
|
if (lfFix->mod->ApplyGeometryDistortion(in[0],in[1],1,1,res)) { |
|
- g_assert_false(isnan(res[0])); |
|
- g_assert_false(isnan(res[1])); |
|
+ g_assert_false(std::isnan(res[0])); |
|
+ g_assert_false(std::isnan(res[1])); |
|
} |
|
|
|
if (lfFix->mod->ApplyGeometryDistortion(in2[0],in2[1],1,1,res)) { |
|
- g_assert_false(isnan(res[0])); |
|
- g_assert_false(isnan(res[1])); |
|
+ g_assert_false(std::isnan(res[0])); |
|
+ g_assert_false(std::isnan(res[1])); |
|
} |
|
|
|
delete lfFix->mod; |
|
-- |
|
2.7.4 |
|
|
|
|