From 8ec3f768d377779dc09afa0771e995f12a63b5e4 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 3 Feb 2015 21:05:33 +0100 Subject: [PATCH] XioMessenger.cc: use reinterpret_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- src/msg/xio/XioMessenger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 2fc3359ccf2c..1b9ea7c31227 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -717,7 +717,7 @@ static inline XioMsg* pool_alloc_xio_msg(Message *m, XioConnection *xcon, int e = xpool_alloc(xio_msgr_noreg_mpool, sizeof(XioMsg), &mp_mem); if (!!e) return NULL; - XioMsg *xmsg = (XioMsg*) mp_mem.addr; + XioMsg *xmsg = reinterpret_cast(mp_mem.addr); assert(!!xmsg); new (xmsg) XioMsg(m, xcon, mp_mem, ex_cnt); return xmsg; -- 2.47.3