File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,13 +201,13 @@ static test_return_t bigger_resize_TEST(void*)
201
201
202
202
#pragma GCC diagnostic push
203
203
#pragma GCC diagnostic ignored "-Woverflow"
204
- static test_return_t INT64_MAX_resize_TEST (void *)
204
+ static test_return_t MAX_resize_TEST (void *)
205
205
{
206
206
const size_t max_block= 10 * GEARMAN_VECTOR_BLOCK_SIZE;
207
207
for (size_t x= 0 ; x < 20 ; x++)
208
208
{
209
209
gearman_vector_st vec (random () % max_block);
210
- ASSERT_FALSE (vec.resize (INT64_MAX ));
210
+ ASSERT_FALSE (vec.resize (std::numeric_limits< size_t >:: max () - 1 ));
211
211
}
212
212
213
213
return TEST_SUCCESS;
@@ -542,7 +542,7 @@ test_st resize_TESTS[] ={
542
542
{ " smaller" , 0 , smaller_resize_TEST },
543
543
{ " bigger" , 0 , bigger_resize_TEST },
544
544
{ " random" , 0 , random_resize_TEST },
545
- { " INT64_MAX" , 0 , INT64_MAX_resize_TEST },
545
+ { " INT64_MAX" , 0 , MAX_resize_TEST },
546
546
{ 0 , 0 , 0 }
547
547
};
548
548
You can’t perform that action at this time.
0 commit comments