From eb30846d39e9bbae5043b257185958ca3fd78188 Mon Sep 17 00:00:00 2001 From: Zhihao Yuan Date: Mon, 1 Apr 2019 12:28:37 -0500 Subject: [PATCH] Fix C4244 from MSVC in sort. --- thrust/system/cuda/detail/sort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];