From 1b30f3ac142165b5d17d8ac3ec616414946e23bf Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Wed, 23 Sep 2020 09:09:17 +0200 Subject: [PATCH] Update return types in ofi::Socket --- fairmq/ofi/Socket.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fairmq/ofi/Socket.cxx b/fairmq/ofi/Socket.cxx index c5ea18a1..9c44ddaf 100644 --- a/fairmq/ofi/Socket.cxx +++ b/fairmq/ofi/Socket.cxx @@ -284,7 +284,7 @@ try { return size; } catch (const std::exception& e) { LOG(error) << e.what(); - return TransferResult::error; + return static_cast(TransferResult::error); } auto Socket::SendQueueReader() -> void @@ -431,7 +431,7 @@ try { return size; } catch (const std::exception& e) { LOG(error) << e.what(); - return TransferResult::error; + return static_cast(TransferResult::error); } auto Socket::Receive(std::vector& msgVec, const int /*timeout*/) -> int64_t @@ -456,7 +456,7 @@ try { return size; } catch (const std::exception& e) { LOG(error) << e.what(); - return TransferResult::error; + return static_cast(TransferResult::error); } auto Socket::RecvControlQueueReader() -> void