zutil.c: In function ‘zng_calloc_aligned’:
zutil.c:133:20: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare]
* we have to ask for extra memory and return an aligned pointer. */
void Z_INTERNAL *zng_calloc_aligned(zng_calloc_func zalloc, void *opaque, unsigned items, unsigned size, unsigned align) {
uintptr_t return_ptr, original_ptr;
- int32_t alloc_size, align_diff;
+ uint32_t alloc_size, align_diff;
void *ptr;
/* If no custom calloc function used then call zlib-ng's aligned calloc */