From 7c77e365134a9d3d50e587223e26f8b42a3ff228 Mon Sep 17 00:00:00 2001 From: Durgesh Nandan Mohanty Date: Thu, 22 Oct 2026 23:25:42 +0000 Subject: [PATCH] fix(cpp): resolve sign-compare warning in row writer --- cpp/fory/row/writer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/fory/row/writer.cc b/cpp/fory/row/writer.cc index 968d6b0c50..cff0857cbc 100644 --- a/cpp/fory/row/writer.cc +++ b/cpp/fory/row/writer.cc @@ -210,7 +210,7 @@ void ArrayWriter::reset(uint32_t num_elements) { FORY_CHECK(data_size < std::numeric_limits::max()); int fixed_part_bytes = util::round_number_of_bytes_to_nearest_word(static_cast(data_size)); - assert((fixed_part_bytes >= data_size) && "too much elements"); + assert((static_cast(fixed_part_bytes) >= data_size) && "too much elements"); buffer_->grow(header_in_bytes_ + fixed_part_bytes); // write num_elements and clear out null bits to header