summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Dickens <mlk@alum.mit.edu>2014-03-19 09:39:53 -0400
committerTom Rondeau <tom@trondeau.com>2014-03-19 11:01:29 -0400
commit0294d120bae1efaf7d34e45efcadcc2298c65c94 (patch)
tree18ac02c342dd9b256976d907d92da5b38e868e22
parentad49c99483e0561343c541856bc73db8a470d408 (diff)
fix QA code for fast_atan2f to explicitly use std::isnan
-rw-r--r--gnuradio-runtime/lib/math/qa_fast_atan2f.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
index b4f104468e..2ec4ecb182 100644
--- a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
+++ b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
@@ -92,7 +92,7 @@ qa_fast_atan2f::t2()
x = inf;
y = inf;
gr_atan2f = gr::fast_atan2f(x, y);
- CPPUNIT_ASSERT(isnan(gr_atan2f));
+ CPPUNIT_ASSERT(std::isnan(gr_atan2f));
/* Test x as NAN */
@@ -123,11 +123,11 @@ qa_fast_atan2f::t2()
x = inf;
y = nan;
gr_atan2f = gr::fast_atan2f(x, y);
- CPPUNIT_ASSERT(isnan(gr_atan2f));
+ CPPUNIT_ASSERT(std::isnan(gr_atan2f));
x = nan;
y = inf;
gr_atan2f = gr::fast_atan2f(x, y);
- CPPUNIT_ASSERT(isnan(gr_atan2f));
+ CPPUNIT_ASSERT(std::isnan(gr_atan2f));
}