Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix C4244 from MSVC in sort. #966

Merged
merged 1 commit into from
Jun 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thrust/system/cuda/detail/sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ namespace __merge_sort {
return status;
};

int num_passes = thrust::detail::log2_ri(num_tiles);
int num_passes = static_cast<int>(thrust::detail::log2_ri(num_tiles));
bool ping = !(1 & num_passes);

Size* merge_partitions = (Size*)allocations[0];
Expand Down