updated for version 7.1b
diff --git a/src/os_unix.c b/src/os_unix.c
index beeea3f..2d512b7 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -490,7 +490,7 @@
 	    /* 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;