Skip to content

Commit

Permalink
Fix constexpr position
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed Apr 13, 2023
1 parent 94a0b6b commit 92c9dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/reshape/byte_cast.cu
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace detail {
namespace {

// Data type of the output data column after conversion.
data_type constexpr output_type{data_type{type_id::UINT8}};
constexpr data_type output_type{type_id::UINT8};

template <typename T, typename Enable = void>
struct byte_list_conversion_fn {
Expand Down Expand Up @@ -89,7 +89,7 @@ struct byte_list_conversion_fn<T, std::enable_if_t<cudf::is_numeric<T>()>> {
thrust::make_counting_iterator(0),
thrust::make_counting_iterator(num_bytes),
[d_inp, d_out] __device__(auto index) {
auto constexpr mask = static_cast<size_type>(sizeof(T) - 1);
constexpr auto mask = static_cast<size_type>(sizeof(T) - 1);
d_out[index] = d_inp[index + mask - ((index & mask) << 1)];
});
} else {
Expand Down

0 comments on commit 92c9dfb

Please sign in to comment.