We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba82521 commit 45b4e2eCopy full SHA for 45b4e2e
src/tree/gpu_hist/histogram.cu
@@ -374,7 +374,7 @@ struct ReadMatrixFunction {
374
auto row = global_idx / k_cols;
375
auto col = global_idx % k_cols;
376
auto value = matrix.GetBinIndex(row, col);
377
- if (isnan(float(value))) {
+ if (isnan(static_cast<float>(value))) {
378
value = -1;
379
}
380
matrix_data_d[global_idx] = value;
0 commit comments