* modules/pagealign_alloc (Depends-on): Add stdint-h.
* lib/pagealign_alloc.c: Include stdint.h.
(pagealign_alloc): Cast pointers to 'uintptr_t' instead of 'unsigned
long'.
+2025-07-06 Collin Funk <collin.funk1@gmail.com>
+
+ pagealign_alloc: Don't assume pointers fit in 'unsigned long'.
+ * modules/pagealign_alloc (Depends-on): Add stdint-h.
+ * lib/pagealign_alloc.c: Include stdint.h.
+ (pagealign_alloc): Cast pointers to 'uintptr_t' instead of 'unsigned
+ long'.
+
2025-07-05 Collin Funk <collin.funk1@gmail.com>
strptime: Convert K&R definitions to ANSI C.
#include <fcntl.h>
#include <unistd.h>
+#include <stdint.h>
#if HAVE_MMAP
# include <sys/mman.h>
return NULL;
}
ret = (char *) unaligned_ptr
- + ((- (unsigned long) unaligned_ptr) & (pagesize - 1));
+ + ((- (uintptr_t) unaligned_ptr) & (pagesize - 1));
new_memnode (ret, unaligned_ptr);
#endif /* HAVE_MMAP && HAVE_POSIX_MEMALIGN */
return ret;
stdlib-h
xalloc
unistd-h
+stdint-h
configure.ac:
gl_PAGEALIGN_ALLOC