Skip to content

Commit

Permalink
clang tildy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Jan 23, 2025
1 parent 922af51 commit 77923f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/quantile.h
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,8 @@ class SketchContainerImpl {
dmlc::OMPException exc;
size_t ridx_block_size = batch.Size() / n_threads_ + (batch.Size() % n_threads_ > 0);
size_t min_ridx_block_size = 1024;
if ((n_features < size_t(n_threads_)) && (ridx_block_size > min_ridx_block_size)) {
if ((n_features < static_cast<size_t>(n_threads_)) &&
(ridx_block_size > min_ridx_block_size)) {
/* Row-wise parallelisation.
*/
std::vector<std::set<float>> categories_buff(n_threads_ * n_features);
Expand Down

0 comments on commit 77923f2

Please sign in to comment.