From 2d1803b3852aa3394cc2d9ecf19612dcdc1e347c Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 3 Feb 2015 23:20:39 +0100 Subject: [PATCH] xio/XioMsg.h: use static_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- src/msg/xio/XioMsg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/xio/XioMsg.h b/src/msg/xio/XioMsg.h index 96bd47e46b554..21bb62cc2a2ea 100644 --- a/src/msg/xio/XioMsg.h +++ b/src/msg/xio/XioMsg.h @@ -230,7 +230,7 @@ public: } void alloc_trailers(int cnt) { - req_arr = (xio_msg_ex*) malloc(cnt * sizeof(xio_msg_ex)); + req_arr = static_cast(malloc(cnt * sizeof(xio_msg_ex))); for (int ix = 0; ix < cnt; ++ix) { xio_msg_ex* xreq = &(req_arr[ix]); new (xreq) xio_msg_ex(this); -- 2.47.3