0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-08-07 21:17:57 +02:00
parent 6d87e9e1c6
commit 116a0f800c
4 changed files with 7 additions and 3 deletions

View File

@@ -453,8 +453,9 @@ slash_adjust(char_u *p)
if (*p == '`')
{
size_t len = STRLEN(p);
/* don't replace backslash in backtick quoted strings */
int len = STRLEN(p);
if (len > 2 && *(p + len - 1) == '`')
return;
}