From ddbada4e64fe4117a0777b7a3d12a1a527991511 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 25 Jul 2011 17:49:30 -0700 Subject: uhd: fixed some warnings with gcc on macosx --- host/lib/usrp/common/fx2_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/common') diff --git a/host/lib/usrp/common/fx2_ctrl.cpp b/host/lib/usrp/common/fx2_ctrl.cpp index 8f2206221..650fba784 100644 --- a/host/lib/usrp/common/fx2_ctrl.cpp +++ b/host/lib/usrp/common/fx2_ctrl.cpp @@ -243,7 +243,7 @@ public: const std::streamsize n = file.gcount(); if(n == 0) continue; int ret = usrp_control_write(VRQ_FPGA_LOAD, 0, FL_XFER, buf, boost::uint16_t(n)); - if (ret < 0 or size_t(ret) != n) { + if (ret < 0 or std::streamsize(ret) != n) { throw uhd::io_error("usrp_load_fpga: fpga load error"); } } -- cgit v1.2.3