Skip to content

Commit 9cf39cc

Browse files
committed
patch 8.0.1157: compiler warning on MS-Windows
Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Yasuhiro Matsomoto)
1 parent 1ec96c9 commit 9cf39cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,7 +2573,7 @@ check_tty(mparm_T *parmp)
25732573
* Note that the message is shown on a Cygwin terminal (e.g.
25742574
* mintty) which encoding is based on $LC_ALL or etc., not the
25752575
* current codepage used by normal Win32 console programs. */
2576-
tofree = s = enc_locale_env(NULL);
2576+
tofree = s = (char *)enc_locale_env(NULL);
25772577
if (s == NULL)
25782578
s = "utf-8"; /* Use "utf-8" by default. */
25792579
(void)bind_textdomain_codeset(VIMPACKAGE, s);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1157,
764766
/**/
765767
1156,
766768
/**/

0 commit comments

Comments
 (0)