Skip to content

Commit af9ce1b

Browse files
committed
Fixed test warning.
1 parent 9416c7c commit af9ce1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/msgpack_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(simple_buffer, TypeParam, IntegerToFloatingPointTe
214214
if (numeric_limits<integer_type>::is_signed) v.push_back(static_cast<integer_type>(-1));
215215
else v.push_back(2);
216216
for (unsigned int i = 0; i < kLoop; i++) {
217-
v.push_back(rand() % 0x7FFFFF);
217+
v.push_back(static_cast<integer_type>(rand() % 0x7FFFFF));
218218
}
219219
for (unsigned int i = 0; i < v.size() ; i++) {
220220
msgpack::sbuffer sbuf;

0 commit comments

Comments
 (0)