aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2017-06-19 16:00:34 -0700
committerTom Tsou <tom@tsou.cc>2017-06-22 18:03:29 +0000
commit354741326cc7b3de9daf7066ecb7793573e5bf15 (patch)
tree039dc91099829eba10afd63d54acd96090a70458
parentd2e5c5694e6dae078a104e7f5d05c87ed8286ea4 (diff)
sigProcLib: Specify standard namespace for isnan()
In commit a3dce85f "sigProcLib: Use explicit NaN check in sinc table generation" Use of std::isnan(double) was added without namespace specifier, which may cause build issues depending on whether the C version isnan() call is available. Add standard namespace to force C++ call usage and potential build issues. Change-Id: I49328c43fdd690a4e6a2b2e949411aaf5674ead1
-rw-r--r--Transceiver52M/sigProcLib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index 9d1ef49..e94170b 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -982,7 +982,7 @@ static void generateSincTable()
for (int i = 0; i < TABLESIZE; i++) {
auto x = (double) i / TABLESIZE * 8 * M_PI;
auto y = sin(x) / x;
- sincTable[i] = isnan(y) ? 1.0 : y;
+ sincTable[i] = std::isnan(y) ? 1.0 : y;
}
}