paleolimbot commented on code in PR #595:
URL: https://github.com/apache/arrow-nanoarrow/pull/595#discussion_r1742597435
##########
src/nanoarrow/common/inline_buffer.h:
##########
@@ -291,6 +291,10 @@ static inline ArrowErrorCode ArrowBufferAppendFill(struct
ArrowBuffer* buffer,
uint8_t value, int64_t
size_bytes) {
NANOARROW_RETURN_NOT_OK(ArrowBufferReserve(buffer, size_bytes));
+ if (size_bytes == 0) {
+ return NANOARROW_OK;
+ }
+
memset(buffer->data + buffer->size_bytes, value, size_bytes);
Review Comment:
Maybe just a few lines here to hit that branch explicitly?
https://github.com/apache/arrow-nanoarrow/blob/cf38896523c2407cc021f552b73cccd8f57dea83/src/nanoarrow/common/buffer_test.cc#L143-L147
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]