updated for version 7.0e02
diff --git a/src/fileio.c b/src/fileio.c
index 1c4cab8..34a53e6 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1113,7 +1113,7 @@
 		size = 0x7ff0L - linerest;	    /* limit buffer to 32K */
 #endif
 
-		for ( ; size >= 10; size = (long_u)size >> 1)
+		for ( ; size >= 10; size = (long)((long_u)size >> 1))
 		{
 		    if ((new_buffer = lalloc((long_u)(size + linerest + 1),
 							      FALSE)) != NULL)