Skip to content

Commit e9d43d3

Browse files
committed
Add static cast
1 parent 97a7bee commit e9d43d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ std::vector<uint8_t> serialize_primitive_array(const sparrow::primitive_array<T>
197197
// Copy the RecordBatch metadata into the buffer
198198
memcpy(dst, batch_builder.GetBufferPointer(), batch_meta_len);
199199
// Add padding to align the body to an 8-byte boundary
200-
if (aligned_batch_meta_len >= batch_meta_len)
200+
if (static_cast<size_t>(aligned_batch_meta_len) >= batch_meta_len)
201201
{
202202
memset(dst + batch_meta_len, 0, aligned_batch_meta_len - batch_meta_len);
203203
}

0 commit comments

Comments
 (0)