Skip to content

Commit 116a0f8

Browse files
committed
patch 8.0.0888: compiler warnings with 64 bit build
Problem: Compiler warnings with 64 bit build. Solution: Add type cast of change the type. (Mike Williams)
1 parent 6d87e9e commit 116a0f8

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/message.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ msg_puts_printf(char_u *str, int maxlen)
26392639
# if defined(FEAT_MBYTE) && !defined(FEAT_GUI_MSWIN)
26402640
if (enc_codepage >= 0 && (int)GetConsoleCP() != enc_codepage)
26412641
{
2642-
int inlen = STRLEN(str);
2642+
int inlen = (int)STRLEN(str);
26432643
int outlen;
26442644
WCHAR *widestr = (WCHAR *)enc_to_utf16(str, &inlen);
26452645

src/os_mswin.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ slash_adjust(char_u *p)
453453

454454
if (*p == '`')
455455
{
456+
size_t len = STRLEN(p);
457+
456458
/* don't replace backslash in backtick quoted strings */
457-
int len = STRLEN(p);
458459
if (len > 2 && *(p + len - 1) == '`')
459460
return;
460461
}

src/os_win32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7031,7 +7031,8 @@ fix_arg_enc(void)
70317031
* main.c, so this part add str as literal. */
70327032
if (literal == FALSE)
70337033
{
7034-
int len = STRLEN(str);
7034+
size_t len = STRLEN(str);
7035+
70357036
if (len > 2 && *str == '`' && *(str + len - 1) == '`')
70367037
literal = TRUE;
70377038
}

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
888,
772774
/**/
773775
887,
774776
/**/

0 commit comments

Comments
 (0)