@@ -59,7 +59,8 @@ bool test_coprime_permutation() noexcept {
59
59
60
60
// Create a coprime permutation and make sure it only covers the range [start, end)
61
61
index_type_ const range_size = static_cast <index_type_>(end - start);
62
- fu::coprime_permutation_range<index_type_> permutation (start, range_size, seed);
62
+ fu::coprime_permutation_range<index_type_> permutation (static_cast <index_type_>(start), range_size,
63
+ static_cast <index_type_>(seed));
63
64
64
65
std::size_t count_matches = 0 ;
65
66
for (auto value : permutation) {
@@ -390,12 +391,12 @@ static bool stress_test_composite(std::size_t const threads_count,
390
391
using prong_t = fu::prong<index_t >;
391
392
392
393
pool_t pool;
393
- if (!pool.try_spawn (threads_count)) return false ;
394
+ if (!pool.try_spawn (static_cast < index_t >( threads_count) )) return false ;
394
395
395
396
// Make sure that no overflow happens in the static scheduling
396
397
std::atomic<std::size_t > counter (0 );
397
398
std::vector<aligned_visit_t > visited (default_parallel_tasks_k);
398
- pool.for_n (default_parallel_tasks_k, [&](prong_t prong) noexcept {
399
+ pool.for_n (static_cast < index_t >( default_parallel_tasks_k) , [&](prong_t prong) noexcept {
399
400
// ? Relax the memory order, as we don't care about the order of the results, will sort 'em later
400
401
std::size_t const count_populated = counter.fetch_add (1 , std::memory_order_relaxed);
401
402
visited[count_populated].task = prong.task ;
@@ -405,7 +406,7 @@ static bool stress_test_composite(std::size_t const threads_count,
405
406
406
407
// Make sure that no overflow happens in the dynamic scheduling
407
408
counter = 0 ;
408
- pool.for_n_dynamic (default_parallel_tasks_k, [&](prong_t prong) noexcept {
409
+ pool.for_n_dynamic (static_cast < index_t >( default_parallel_tasks_k) , [&](prong_t prong) noexcept {
409
410
// ? Relax the memory order, as we don't care about the order of the results, will sort 'em later
410
411
std::size_t const count_populated = counter.fetch_add (1 , std::memory_order_relaxed);
411
412
visited[count_populated].task = prong.task ;
0 commit comments