summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-28 13:27:13 -0700
committerJosh Blum <josh@joshknows.com>2010-05-28 13:27:13 -0700
commit5fe31448cce1e6deb48fadad177b105d10662406 (patch)
tree6428c7fc8a83011a18ae0f8b6182e770e5c5d9e1 /host
parent8340c198618b892772d8627f066fe8c7d924c674 (diff)
downloaduhd-5fe31448cce1e6deb48fadad177b105d10662406.tar.gz
uhd-5fe31448cce1e6deb48fadad177b105d10662406.tar.bz2
uhd-5fe31448cce1e6deb48fadad177b105d10662406.zip
fix for msvc warning
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp2/dboard_iface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/dboard_iface.cpp b/host/lib/usrp/usrp2/dboard_iface.cpp
index 0a2e4b550..2621d43b4 100644
--- a/host/lib/usrp/usrp2/dboard_iface.cpp
+++ b/host/lib/usrp/usrp2/dboard_iface.cpp
@@ -136,7 +136,7 @@ void usrp2_dboard_iface::set_pin_ctrl(unit_t unit, boost::uint16_t value){
//calculate the new selection mux setting
boost::uint32_t new_sels = 0x0;
for(size_t i = 0; i < 16; i++){
- bool is_bit_set = bool(value & (0x1 << i));
+ bool is_bit_set = (value & (0x1 << i)) != 0;
new_sels |= ((is_bit_set)? FRF_GPIO_SEL_ATR : FRF_GPIO_SEL_GPIO) << (i*2);
}