From 94d96c56cdea20a2a0b8cc6e6e05fce81f7a2126 Mon Sep 17 00:00:00 2001 From: James Turner <zakalawe@mac.com> Date: Wed, 26 Oct 2016 14:12:26 +0200 Subject: [PATCH] Replace one more use of isnan() --- src/Instrumentation/newnavradio.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instrumentation/newnavradio.cxx b/src/Instrumentation/newnavradio.cxx index c6db1ce88..6c65d2e02 100644 --- a/src/Instrumentation/newnavradio.cxx +++ b/src/Instrumentation/newnavradio.cxx @@ -783,7 +783,7 @@ void GS::update( double dt, const SGGeod & aircraftPosition ) double offset = _targetGlideslope_deg - gsDirect; if( offset < 0.0 ) offset = _targetGlideslope_deg/2 * sawtooth(2.0*offset/_targetGlideslope_deg); - assert( false == isnan(offset) ); + assert( false == SGMisc<double>::isNaN(offset) ); // GS is documented to be 1.4 degrees thick, // i.e. plus or minus 0.7 degrees from the midline: _glideslopeOffset_norm = SGMiscd::clip(offset/0.7, -1.0, 1.0);