diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-10-27 12:18:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-10-27 12:18:00 +0200 |
commit | 6b5ef067a548f1995dfb09190eca5a3560c2dad6 (patch) | |
tree | 9472a2b3bf60d07fe0d31ad5244ba1fc4afc944d /src/os_win32.c | |
parent | 786989ba370724dd61bb8157769f26d988c6eaed (diff) | |
download | vim-git-6b5ef067a548f1995dfb09190eca5a3560c2dad6.tar.gz |
updated for version 7.3.037v7.3.037
Problem: Compiler warnings for loss of data. (Mike Williams)
Solution: Add type casts.
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 3fdd41b6d..0ca47d0fe 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -224,7 +224,8 @@ get_exe_name(void) if (exe_path == NULL && exe_name != NULL) { - exe_path = vim_strnsave(exe_name, gettail_sep(exe_name) - exe_name); + exe_path = vim_strnsave(exe_name, + (int)(gettail_sep(exe_name) - exe_name)); if (exe_path != NULL) { /* Append our starting directory to $PATH, so that when doing @@ -2374,7 +2375,7 @@ fname_case( /* To avoid a slow failure append "\*" when searching a directory, * server or network share. */ STRCPY(szTrueNameTemp, szTrueName); - slen = strlen(szTrueNameTemp); + slen = (int)strlen(szTrueNameTemp); if (*porig == psepc && slen + 2 < _MAX_PATH) STRCPY(szTrueNameTemp + slen, "\\*"); |