From e33b2e471987e6c6483b5d1dafc1ac5b0da2cd31 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 11 Oct 2020 20:48:51 +0200 Subject: [PATCH] Make expression clear. --- src/s4u/s4u_Link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s4u/s4u_Link.cpp b/src/s4u/s4u_Link.cpp index 3ac5de9d35..dd77817a48 100644 --- a/src/s4u/s4u_Link.cpp +++ b/src/s4u/s4u_Link.cpp @@ -141,7 +141,7 @@ sg_link_t sg_link_by_name(const char* name) int sg_link_is_shared(const_sg_link_t link) { - return (int)link->get_sharing_policy(); + return link->get_sharing_policy() != simgrid::s4u::Link::SharingPolicy::FATPIPE; } double sg_link_bandwidth(const_sg_link_t link) { -- 2.20.1