@@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(PrevectorTestInt)
220220 prevector_tester<8 , int > test;
221221 for (int i = 0 ; i < 2048 ; i++) {
222222 if (InsecureRandBits (2 ) == 0 ) {
223- test.insert (InsecureRandRange (test.size () + 1 ), InsecureRand32 ());
223+ test.insert (InsecureRandRange (test.size () + 1 ), int ( InsecureRand32 () ));
224224 }
225225 if (test.size () > 0 && InsecureRandBits (2 ) == 1 ) {
226226 test.erase (InsecureRandRange (test.size ()));
@@ -230,15 +230,15 @@ BOOST_AUTO_TEST_CASE(PrevectorTestInt)
230230 test.resize (new_size);
231231 }
232232 if (InsecureRandBits (3 ) == 3 ) {
233- test.insert (InsecureRandRange (test.size () + 1 ), 1 + InsecureRandBool (), InsecureRand32 ());
233+ test.insert (InsecureRandRange (test.size () + 1 ), 1 + InsecureRandBool (), int ( InsecureRand32 () ));
234234 }
235235 if (InsecureRandBits (3 ) == 4 ) {
236236 int del = std::min<int >(test.size (), 1 + (InsecureRandBool ()));
237237 int beg = InsecureRandRange (test.size () + 1 - del);
238238 test.erase (beg, beg + del);
239239 }
240240 if (InsecureRandBits (4 ) == 5 ) {
241- test.push_back (InsecureRand32 ());
241+ test.push_back (int ( InsecureRand32 () ));
242242 }
243243 if (test.size () > 0 && InsecureRandBits (4 ) == 6 ) {
244244 test.pop_back ();
@@ -247,7 +247,7 @@ BOOST_AUTO_TEST_CASE(PrevectorTestInt)
247247 int values[4 ];
248248 int num = 1 + (InsecureRandBits (2 ));
249249 for (int k = 0 ; k < num; k++) {
250- values[k] = InsecureRand32 ();
250+ values[k] = int ( InsecureRand32 () );
251251 }
252252 test.insert_range (InsecureRandRange (test.size () + 1 ), values, values + num);
253253 }
@@ -263,13 +263,13 @@ BOOST_AUTO_TEST_CASE(PrevectorTestInt)
263263 test.shrink_to_fit ();
264264 }
265265 if (test.size () > 0 ) {
266- test.update (InsecureRandRange (test.size ()), InsecureRand32 ());
266+ test.update (InsecureRandRange (test.size ()), int ( InsecureRand32 () ));
267267 }
268268 if (InsecureRandBits (10 ) == 11 ) {
269269 test.clear ();
270270 }
271271 if (InsecureRandBits (9 ) == 12 ) {
272- test.assign (InsecureRandBits (5 ), InsecureRand32 ());
272+ test.assign (InsecureRandBits (5 ), int ( InsecureRand32 () ));
273273 }
274274 if (InsecureRandBits (3 ) == 3 ) {
275275 test.swap ();
@@ -283,8 +283,8 @@ BOOST_AUTO_TEST_CASE(PrevectorTestInt)
283283 if (InsecureRandBits (5 ) == 19 ) {
284284 unsigned int num = 1 + (InsecureRandBits (4 ));
285285 std::vector<int > values (num);
286- for (auto & v : values) {
287- v = InsecureRand32 ();
286+ for (int & v : values) {
287+ v = int ( InsecureRand32 () );
288288 }
289289 test.resize_uninitialized (values);
290290 }
0 commit comments