We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a7bee commit e9d43d3Copy full SHA for e9d43d3
src/serialize.cpp
@@ -197,7 +197,7 @@ std::vector<uint8_t> serialize_primitive_array(const sparrow::primitive_array<T>
197
// Copy the RecordBatch metadata into the buffer
198
memcpy(dst, batch_builder.GetBufferPointer(), batch_meta_len);
199
// Add padding to align the body to an 8-byte boundary
200
- if (aligned_batch_meta_len >= batch_meta_len)
+ if (static_cast<size_t>(aligned_batch_meta_len) >= batch_meta_len)
201
{
202
memset(dst + batch_meta_len, 0, aligned_batch_meta_len - batch_meta_len);
203
}
0 commit comments