diff options
-rw-r--r-- | host/lib/transport/nirio/rpc/rpc_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/transport/nirio/rpc/rpc_client.cpp b/host/lib/transport/nirio/rpc/rpc_client.cpp index 64494ae6e..661f72e81 100644 --- a/host/lib/transport/nirio/rpc/rpc_client.cpp +++ b/host/lib/transport/nirio/rpc/rpc_client.cpp @@ -6,6 +6,7 @@ // #include <uhd/transport/nirio/rpc/rpc_client.hpp> +#include <uhdlib/utils/narrow.hpp> #include <boost/asio/error.hpp> #include <boost/bind.hpp> #include <boost/format.hpp> @@ -113,7 +114,7 @@ const boost::system::error_code& rpc_client::call(func_id_t func_id, if (_io_service_thread.get()) { _request.header.func_id = func_id; in_args.store(_request.data); - _request.header.func_args_size = _request.data.size(); + _request.header.func_args_size = uhd::narrow_cast<uint32_t>(_request.data.size()); _exec_err.clear(); |