From: Bram Moolenaar Date: Mon, 14 Aug 2017 21:25:04 +0000 (+0200) Subject: patch 8.0.0945: 64-bit compiler warnings X-Git-Tag: v8.0.0945 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60104f183cc639d2a5295ba157d4ec66ac19fa53;p=vim patch 8.0.0945: 64-bit compiler warnings Problem: 64-bit compiler warnings. Solution: Use "size_t" instead of "int". (Mike Williams) --- diff --git a/src/os_win32.c b/src/os_win32.c index c6d9ad167..1098d7f73 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -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]; diff --git a/src/version.c b/src/version.c index 882e3da52..d616e2567 100644 --- a/src/version.c +++ b/src/version.c @@ -769,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 945, /**/ 944, /**/