You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2024/09/03 19:49:35 UTC
Re: [PR] test: Fix meson build and clean up some warnings [arrow-nanoarrow]
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org