Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 4, 2022
1 parent 8506063 commit 567cd00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/benchmarks/pairwise_linestring_distance.cu
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ std::tuple<rmm::device_vector<cartesian_2d<T>>, rmm::device_vector<int32_t>> gen
std::vector<cartesian_2d<T>> points(num_points);

auto random_walk_func = [segment_length](auto const& prev, auto const& rad) {
return cartesian_2d<T>{prev.x + segment_length * rad.x, prev.y + segment_length * rad.y};
return cartesian_2d<T>{static_cast<T>(prev.x + segment_length * rad.x),
static_cast<T>(prev.y + segment_length * rad.y)};
};

thrust::exclusive_scan(
Expand Down

0 comments on commit 567cd00

Please sign in to comment.