Skip to content

Commit

Permalink
patch 8.0.0945: 64-bit compiler warnings
Browse files Browse the repository at this point in the history
Problem:    64-bit compiler warnings.
Solution:   Use "size_t" instead of "int". (Mike Williams)
  • Loading branch information
brammool committed Aug 14, 2017
1 parent d21b16f commit 60104f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/os_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
945,
/**/
944,
/**/
Expand Down

0 comments on commit 60104f1

Please sign in to comment.