Permalink
Browse files

patch 8.0.0945: 64-bit compiler warnings

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 60104f183cc639d2a5295ba157d4ec66ac19fa53
Showing with 7 additions and 2 deletions.
  1. +5 −2 src/os_win32.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
945,
/**/
944,
/**/

0 comments on commit 60104f1

Please sign in to comment.