about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/m68k/mmap_internal.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-10 08:07:37 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-20 10:57:40 -0300
commit85a322874404d1a13e9d628b8bc44120cabf7e12 (patch)
tree4ef09deabf57eb70d00e3c57828de0c9ac3f1ab9 /sysdeps/unix/sysv/linux/m68k/mmap_internal.h
parentaeb4d2e9815d459e2640a31f5abb8ef803830107 (diff)
downloadglibc-85a322874404d1a13e9d628b8bc44120cabf7e12.tar.gz
glibc-85a322874404d1a13e9d628b8bc44120cabf7e12.tar.xz
glibc-85a322874404d1a13e9d628b8bc44120cabf7e12.zip
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/m68k/mmap_internal.h')
-rw-r--r--sysdeps/unix/sysv/linux/m68k/mmap_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/mmap_internal.h b/sysdeps/unix/sysv/linux/m68k/mmap_internal.h
index 8e6f1ed84c..9330edfc05 100644
--- a/sysdeps/unix/sysv/linux/m68k/mmap_internal.h
+++ b/sysdeps/unix/sysv/linux/m68k/mmap_internal.h
@@ -22,7 +22,7 @@
 /* ColdFire and Sun 3 kernels have PAGE_SHIFT set to 13 and expect
    mmap2 offset to be provided in 8K pages.  Determine the shift
    dynamically with getpagesize.  */
-#define MMAP2_PAGE_UNIT -1
+#define MMAP2_PAGE_UNIT -1ULL
 
 #include_next <mmap_internal.h>