From 0b796c2956456ec7d7ef74cad2172fe1e0f10e20 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 30 Apr 2019 17:25:50 +0200 Subject: [PATCH] Fixed random isnan --- lib/src/phy/utils/random.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/phy/utils/random.cpp b/lib/src/phy/utils/random.cpp index bccf08a44..5baa77e07 100644 --- a/lib/src/phy/utils/random.cpp +++ b/lib/src/phy/utils/random.cpp @@ -21,7 +21,6 @@ #include "srslte/phy/utils/random.h" #include -#include #include class random_wrap @@ -78,7 +77,7 @@ float srslte_random_uniform_real_dist(srslte_random_t q, float min, float max) if (q) { auto* h = (random_wrap*)q; - while (isnan(ret)) { + while (std::isnan(ret)) { ret = h->uniform_real_dist(min, max); } }