From 26fead0851b0a34cce150830937348934fd559a7 Mon Sep 17 00:00:00 2001 From: "Wu, Xiaochang" Date: Fri, 17 Dec 2021 16:50:43 +0800 Subject: [PATCH] fix lint --- src/data/adapter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/adapter.h b/src/data/adapter.h index e12e507afdd0..33d80161bd19 100644 --- a/src/data/adapter.h +++ b/src/data/adapter.h @@ -1222,7 +1222,7 @@ class RecordBatchesIterAdapter: public dmlc::DataIter { bool Next() override { batches_.clear(); - while (batches_.size() < (size_t)nbatches_ && (*next_callback_)(this) != 0) { + while (batches_.size() < static_cast(nbatches_) && (*next_callback_)(this) != 0) { at_first_ = false; }