From 4b6db388f4278504c2ca77c66ed9ee95fd174043 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Fri, 18 Dec 2020 11:15:12 -0800 Subject: [PATCH] trailing const formatting --- cpp/include/cudf/detail/utilities/hash_functions.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/include/cudf/detail/utilities/hash_functions.cuh b/cpp/include/cudf/detail/utilities/hash_functions.cuh index 93e9deecb9a..5f7728b8c1e 100644 --- a/cpp/include/cudf/detail/utilities/hash_functions.cuh +++ b/cpp/include/cudf/detail/utilities/hash_functions.cuh @@ -494,7 +494,7 @@ MurmurHash3_32::operator()(cudf::string_view const& key) cons constexpr uint32_t c2 = 0x1b873593; auto getblock32 = [] __device__(uint32_t const* p, int i) -> uint32_t { // Individual byte reads for unaligned accesses (very likely) - auto q = (const uint8_t*)(p + i); + auto q = (uint8_t const*)(p + i); return q[0] | (q[1] << 8) | (q[2] << 16) | (q[3] << 24); }; @@ -586,7 +586,7 @@ struct SparkMurmurHash3_32 { result_type CUDA_DEVICE_CALLABLE compute(TKey const& key) const { constexpr int len = sizeof(TKey); - const int8_t* const data = reinterpret_cast(&key); + int8_t const* const data = reinterpret_cast(&key); constexpr int nblocks = len / 4; uint32_t h1 = m_seed;