diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-28 13:27:13 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-28 13:27:13 -0700 |
commit | 5fe31448cce1e6deb48fadad177b105d10662406 (patch) | |
tree | 6428c7fc8a83011a18ae0f8b6182e770e5c5d9e1 | |
parent | 8340c198618b892772d8627f066fe8c7d924c674 (diff) | |
download | uhd-5fe31448cce1e6deb48fadad177b105d10662406.tar.gz uhd-5fe31448cce1e6deb48fadad177b105d10662406.tar.bz2 uhd-5fe31448cce1e6deb48fadad177b105d10662406.zip |
fix for msvc warning
-rw-r--r-- | host/lib/usrp/usrp2/dboard_iface.cpp | 2 |
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); } |