WillAyd opened a new pull request, #233:
URL: https://github.com/apache/arrow-nanoarrow/pull/233

   `value` within this function is a uint64_t, so using the CHECK_RANGE macro 
yields warnings/errors like:
   
   ```sh
   /home/willayd/clones/arrow-adbc/c/vendor/nanoarrow/nanoarrow.h:192:31: 
error: comparison of unsigned expression in ‘>= 0’ is always true 
[-Werror=type-limits]
     192 |   NANOARROW_RETURN_NOT_OK((x_ >= min_ && x_ <= max_) ? NANOARROW_OK 
: EINVAL)
         |                               ^
   /home/willayd/clones/arrow-adbc/c/vendor/nanoarrow/nanoarrow.h:187:23: note: 
in definition of macro ‘_NANOARROW_RETURN_NOT_OK_IMPL’
     187 |     const int NAME = (EXPR);                      \
         |                       ^~~~
   /home/willayd/clones/arrow-adbc/c/vendor/nanoarrow/nanoarrow.h:192:3: note: 
in expansion of macro ‘NANOARROW_RETURN_NOT_OK’
     192 |   NANOARROW_RETURN_NOT_OK((x_ >= min_ && x_ <= max_) ? NANOARROW_OK 
: EINVAL)
         |   ^~~~~~~~~~~~~~~~~~~~~~~
   /home/willayd/clones/arrow-adbc/c/vendor/nanoarrow/nanoarrow.h:2606:7: note: 
in expansion of macro ‘_NANOARROW_CHECK_RANGE’
    2606 |       _NANOARROW_CHECK_RANGE(value, 0, UINT8_MAX);
   ```


-- 
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]

Reply via email to