Skip to content

Commit 6c37312

Browse files
committed
fix linter
1 parent 407abc5 commit 6c37312

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/iceberg/util/projection_util_internal.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ class ProjectionUtil {
215215
const auto& literal = pred->literal();
216216
const auto length =
217217
StringUtils::CodePointCount(std::get<std::string>(literal.value()));
218-
const auto width = internal::checked_pointer_cast<TruncateTransform>(func)->width();
218+
const auto width = static_cast<size_t>(
219+
internal::checked_pointer_cast<TruncateTransform>(func)->width());
219220

220221
if (length < width) {
221222
return MakePredicate(op, name, func, literal);
@@ -248,7 +249,8 @@ class ProjectionUtil {
248249
const auto& literal = pred->literal();
249250
const auto length =
250251
StringUtils::CodePointCount(std::get<std::string>(literal.value()));
251-
const auto width = internal::checked_pointer_cast<TruncateTransform>(func)->width();
252+
const auto width = static_cast<size_t>(
253+
internal::checked_pointer_cast<TruncateTransform>(func)->width());
252254

253255
if (length < width) {
254256
return MakePredicate(op, name, func, literal);

0 commit comments

Comments
 (0)