Skip to content

Commit 60104f1

Browse files
committed
patch 8.0.0945: 64-bit compiler warnings
Problem: 64-bit compiler warnings. Solution: Use "size_t" instead of "int". (Mike Williams)
1 parent d21b16f commit 60104f1

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/os_win32.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5072,8 +5072,11 @@ make_job_env(garray_T *gap, dict_T *env)
50725072
--todo;
50735073
if (wkey != NULL && wval != NULL)
50745074
{
5075-
int n, lkey = wcslen(wkey), lval = wcslen(wval);
5076-
if (ga_grow(gap, lkey + lval + 2) != OK)
5075+
int n;
5076+
size_t lkey = wcslen(wkey);
5077+
size_t lval = wcslen(wval);
5078+
5079+
if (ga_grow(gap, (int)(lkey + lval + 2)) != OK)
50775080
continue;
50785081
for (n = 0; n < lkey; n++)
50795082
*((WCHAR*)gap->ga_data + gap->ga_len++) = wkey[n];

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
945,
772774
/**/
773775
944,
774776
/**/

0 commit comments

Comments
 (0)