From 45b4e2ebc49342891fe3db02d3f2ae53a08929ed Mon Sep 17 00:00:00 2001 From: Ziyue Xu Date: Fri, 9 Aug 2024 11:03:22 -0400 Subject: [PATCH] updates for PR checks --- src/tree/gpu_hist/histogram.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree/gpu_hist/histogram.cu b/src/tree/gpu_hist/histogram.cu index 2b52f03a1dbf..073faa6f5203 100644 --- a/src/tree/gpu_hist/histogram.cu +++ b/src/tree/gpu_hist/histogram.cu @@ -374,7 +374,7 @@ struct ReadMatrixFunction { auto row = global_idx / k_cols; auto col = global_idx % k_cols; auto value = matrix.GetBinIndex(row, col); - if (isnan(float(value))) { + if (isnan(static_cast(value))) { value = -1; } matrix_data_d[global_idx] = value;