From af9ce1b6273f9f1857ba172f28125251ef6472b0 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Sat, 23 Oct 2021 12:17:34 +0900 Subject: [PATCH] Fixed test warning. --- test/msgpack_basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/msgpack_basic.cpp b/test/msgpack_basic.cpp index 1009a30e..24b2a31f 100644 --- a/test/msgpack_basic.cpp +++ b/test/msgpack_basic.cpp @@ -214,7 +214,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(simple_buffer, TypeParam, IntegerToFloatingPointTe if (numeric_limits::is_signed) v.push_back(static_cast(-1)); else v.push_back(2); for (unsigned int i = 0; i < kLoop; i++) { - v.push_back(rand() % 0x7FFFFF); + v.push_back(static_cast(rand() % 0x7FFFFF)); } for (unsigned int i = 0; i < v.size() ; i++) { msgpack::sbuffer sbuf;