From b27c87c9ed7502fd275d2ef76e52e05a83ced7dc Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Sun, 3 Aug 2014 16:38:58 +0900 Subject: [PATCH] Replaced C-Style cast with static_cast. --- include/msgpack/unpack.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/msgpack/unpack.hpp b/include/msgpack/unpack.hpp index 68b9216f..9e2fae02 100644 --- a/include/msgpack/unpack.hpp +++ b/include/msgpack/unpack.hpp @@ -400,7 +400,7 @@ public: ++m_current; fixed_trail_again = false; } - if((std::size_t)(pe - m_current) < m_trail) { + if(static_cast(pe - m_current) < m_trail) { off = m_current - m_start; return 0; }