From 7788526fbe9fe286be141dba4f387c4bf6a921d4 Mon Sep 17 00:00:00 2001 From: Martin Anderseck Date: Mon, 16 Aug 2021 15:19:13 +0200 Subject: lib: transport: Mark typecast as intended Remove warning about potential data loss in VS due to typecast by marking it as intended. --- host/lib/transport/nirio/rpc/rpc_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host') 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 +#include #include #include #include @@ -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(_request.data.size()); _exec_err.clear(); -- cgit v1.2.3