diff --git a/thrust/system/cuda/detail/sort.h b/thrust/system/cuda/detail/sort.h index b9363b41b..0711c224f 100644 --- a/thrust/system/cuda/detail/sort.h +++ b/thrust/system/cuda/detail/sort.h @@ -1214,7 +1214,7 @@ namespace __merge_sort { return status; }; - int num_passes = thrust::detail::log2_ri(num_tiles); + int num_passes = static_cast(thrust::detail::log2_ri(num_tiles)); bool ping = !(1 & num_passes); Size* merge_partitions = (Size*)allocations[0];