From 35a6099f998c0f77fa5f9296bd7d25414bf1879a Mon Sep 17 00:00:00 2001 From: David Wendt Date: Wed, 16 Feb 2022 17:28:43 -0500 Subject: [PATCH] Add const qualifier to MurmurHash3_32::hash_combine --- 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 51d58383de4..568fd4afd35 100644 --- a/cpp/include/cudf/detail/utilities/hash_functions.cuh +++ b/cpp/include/cudf/detail/utilities/hash_functions.cuh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -130,7 +130,7 @@ struct MurmurHash3_32 { * * @returns A hash value that intelligently combines the lhs and rhs hash values */ - [[nodiscard]] __device__ inline result_type hash_combine(result_type lhs, result_type rhs) + constexpr result_type hash_combine(result_type lhs, result_type rhs) const { result_type combined{lhs};