summaryrefslogtreecommitdiffstats
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index beeea3f9ce..2d512b730f 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -490,7 +490,7 @@ mch_total_mem(special)
/* avoid overflow as much as possible */
while (shiftright > 0 && (pagesize & 1) == 0)
{
- pagesize = pagesize >> 1;
+ pagesize = (long_u)pagesize >> 1;
--shiftright;
}
mem = (long_u)pagesize * pagecount;