From: Arnaud Giersch Date: Tue, 5 Feb 2013 10:12:03 +0000 (+0100) Subject: Cast value, to please C++ compilers. X-Git-Tag: v3_9~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e24d9f967b0ebaa02175fed669acb7505fd94b92 Cast value, to please C++ compilers. --- diff --git a/include/msg/datatypes.h b/include/msg/datatypes.h index 0536dbb264..948930836c 100644 --- a/include/msg/datatypes.h +++ b/include/msg/datatypes.h @@ -53,7 +53,7 @@ typedef struct msg_host_priv { } s_msg_host_priv_t, *msg_host_priv_t; static inline msg_host_priv_t MSG_host_priv(msg_host_t host){ - return xbt_lib_get_level(host, MSG_HOST_LEVEL); + return (msg_host_priv_t )xbt_lib_get_level(host, MSG_HOST_LEVEL); }