mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
linux: Use same type for MMAP2_PAGE_UNIT
It avoid a possible compiler warning where right size of operator is converted from a negative value to unsigned. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
# define MMAP2_PAGE_UNIT 4096ULL
|
||||
#endif
|
||||
|
||||
#if MMAP2_PAGE_UNIT == -1
|
||||
#if MMAP2_PAGE_UNIT == -1ULL
|
||||
static uint64_t page_unit;
|
||||
# define MMAP_CHECK_PAGE_UNIT() \
|
||||
if (page_unit == 0) \
|
||||
|
Reference in New Issue
Block a user