From d23df2d9411a0d80e00a6927fff946f2c5f906bc Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 15 Feb 2019 16:42:34 -0800 Subject: lib: Fix various type-conversion compiler warnings This makes more type-conversions explicit, to reduce the number of warnings specifically for MSVC. --- host/lib/rfnoc/ctrl_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/rfnoc/ctrl_iface.cpp') diff --git a/host/lib/rfnoc/ctrl_iface.cpp b/host/lib/rfnoc/ctrl_iface.cpp index a441ffbc3..377808eef 100644 --- a/host/lib/rfnoc/ctrl_iface.cpp +++ b/host/lib/rfnoc/ctrl_iface.cpp @@ -63,7 +63,7 @@ public: boost::mutex::scoped_lock lock(_mutex); this->send_pkt(addr, data, timestamp); return this->wait_for_ack( - readback, bool(timestamp) ? MASSIVE_TIMEOUT : ACK_TIMEOUT); + readback, bool(timestamp != 0) ? MASSIVE_TIMEOUT : ACK_TIMEOUT); } private: -- cgit v1.2.3