From 2df04265e9416a11efa8de10efb84b8cf4e45230 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Wed, 8 Jan 2025 11:58:20 +0000 Subject: [PATCH] constexpr/const all the things --- cpp/src/rolling/detail/rolling_utils.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/rolling/detail/rolling_utils.cuh b/cpp/src/rolling/detail/rolling_utils.cuh index dc9acdf3722..7a29ea26994 100644 --- a/cpp/src/rolling/detail/rolling_utils.cuh +++ b/cpp/src/rolling/detail/rolling_utils.cuh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024, NVIDIA CORPORATION. + * Copyright (c) 2024-2025, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,7 +86,7 @@ template struct fixed_window_clamper { Grouping groups; cudf::size_type delta; - [[nodiscard]] __device__ cudf::size_type operator()(cudf::size_type i) + [[nodiscard]] __device__ constexpr cudf::size_type operator()(cudf::size_type i) const { auto label = groups.label(i); auto start = groups.start(label);