Skip to content

Commit 83cb8f4

Browse files
authored
Apply suggestion from @wgtmac
1 parent 72b274a commit 83cb8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iceberg/deletes/roaring_position_bitmap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Result<std::string> RoaringPositionBitmap::Serialize() const {
177177
buf += kBitmapCountSizeBytes;
178178

179179
// Write each bitmap with its key
180-
for (int32_t key = 0; key < static_cast<int32_t>(impl_->bitmaps.size()); ++key) {
180+
for (int32_t key = 0; std::cmp_less(key, impl_->bitmaps.size()); ++key) {
181181
WriteLE32(buf, key);
182182
buf += kBitmapKeySizeBytes;
183183
size_t written = impl_->bitmaps[key].write(buf, /*portable=*/true);

0 commit comments

Comments
 (0)