summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-27 15:45:59 -0800
committerJosh Blum <josh@joshknows.com>2012-02-28 13:20:58 -0800
commitdfaf1f930ce0ff7219c0d10fc0156cba0e46950a (patch)
treee0d67976fca62f07d43f9bf7003b85a9b8fdaabb /host/lib/usrp/dboard
parent2033713db5ca6224bc769747420458287eecc506 (diff)
downloaduhd-dfaf1f930ce0ff7219c0d10fc0156cba0e46950a.tar.gz
uhd-dfaf1f930ce0ff7219c0d10fc0156cba0e46950a.tar.bz2
uhd-dfaf1f930ce0ff7219c0d10fc0156cba0e46950a.zip
uhd: fixed some compile warnings for msvc
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r--host/lib/usrp/dboard/db_dbsrx2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_dbsrx2.cpp b/host/lib/usrp/dboard/db_dbsrx2.cpp
index 954d7083d..01eec133f 100644
--- a/host/lib/usrp/dboard/db_dbsrx2.cpp
+++ b/host/lib/usrp/dboard/db_dbsrx2.cpp
@@ -253,7 +253,7 @@ double dbsrx2::set_lo_freq(double target_freq){
N = (target_freq*R*ext_div)/(ref_freq); //actual spec range is (19, 251)
intdiv = int(std::floor(N)); // if (intdiv < 19 or intdiv > 251) continue;
- fracdiv = std::floor((N - intdiv)*double(1 << 20));
+ fracdiv = boost::math::iround((N - intdiv)*double(1 << 20));
//calculate the actual freq from the values above
N = double(intdiv) + double(fracdiv)/double(1 << 20);