Skip to content

Commit 77923f2

Browse files
author
Dmitry Razdoburdin
committed
clang tildy
1 parent 922af51 commit 77923f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/quantile.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,8 @@ class SketchContainerImpl {
843843
dmlc::OMPException exc;
844844
size_t ridx_block_size = batch.Size() / n_threads_ + (batch.Size() % n_threads_ > 0);
845845
size_t min_ridx_block_size = 1024;
846-
if ((n_features < size_t(n_threads_)) && (ridx_block_size > min_ridx_block_size)) {
846+
if ((n_features < static_cast<size_t>(n_threads_)) &&
847+
(ridx_block_size > min_ridx_block_size)) {
847848
/* Row-wise parallelisation.
848849
*/
849850
std::vector<std::set<float>> categories_buff(n_threads_ * n_features);

0 commit comments

Comments
 (0)