diff src/os_win32.c @ 5588:2ca470c6096e v7.4.141

updated for version 7.4.141 Problem: Problems when building with Borland: st_mode is signed short; can't build with Python; temp files not ignored by Mercurial; building with DEBUG doesn't define _DEBUG. Solution: Fix the problems. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Fri, 10 Jan 2014 18:16:07 +0100
parents 6fdb1d6646b6
children 735b70faac4a
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2960,7 +2960,7 @@ mch_getperm(char_u *name)
     int		n;
 
     n = mch_stat(name, &st);
-    return n == 0 ? (long)st.st_mode : -1L;
+    return n == 0 ? (long)(unsigned short)st.st_mode : -1L;
 }