0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0945: 64-bit compiler warnings

Problem:    64-bit compiler warnings.
Solution:   Use "size_t" instead of "int". (Mike Williams)
This commit is contained in:
Bram Moolenaar
2017-08-14 23:25:04 +02:00
parent d21b16f3c0
commit 60104f183c
2 changed files with 7 additions and 2 deletions

View File

@@ -5072,8 +5072,11 @@ make_job_env(garray_T *gap, dict_T *env)
--todo;
if (wkey != NULL && wval != NULL)
{
int n, lkey = wcslen(wkey), lval = wcslen(wval);
if (ga_grow(gap, lkey + lval + 2) != OK)
int n;
size_t lkey = wcslen(wkey);
size_t lval = wcslen(wval);
if (ga_grow(gap, (int)(lkey + lval + 2)) != OK)
continue;
for (n = 0; n < lkey; n++)
*((WCHAR*)gap->ga_data + gap->ga_len++) = wkey[n];

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
945,
/**/
944,
/**/