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

Commit

Permalink
Fix C4244 from MSVC in sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihaoy authored and alliepiper committed Jun 9, 2020
1 parent 311f3d8 commit ee57582
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ee57582

Please sign in to comment.