Skip to content

Commit

Permalink
Fix return type of predicate_to_integral::operator()
Browse files Browse the repository at this point in the history
  • Loading branch information
ahehn-nv authored and alliepiper committed Jun 9, 2020
1 parent b9a2073 commit f4580c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thrust/detail/internal_functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct predicate_to_integral

template <typename T>
__host__ __device__
bool operator()(const T& x)
IntegralType operator()(const T& x)
{
return pred(x) ? IntegralType(1) : IntegralType(0);
}
Expand Down

0 comments on commit f4580c9

Please sign in to comment.