# HG changeset patch # User Christian Brabandt # Date 1537102807 -7200 # Node ID 7a11facdf74b5be4cc24788505c25e6dd621d828 # Parent 0b9111b6ec9bf3b37ac20337b5f6f22bd0ad923d patch 8.1.0395: compiler warning on 64-bit MS-Windows commit https://github.com/vim/vim/commit/6e272acc82af900318017061f923e7f66dc7ee7a Author: Bram Moolenaar Date: Sun Sep 16 14:51:36 2018 +0200 patch 8.1.0395: compiler warning on 64-bit MS-Windows Problem: Compiler warning on 64-bit MS-Windows. Solution: Add type cast. (Mike Williams) diff --git a/src/diff.c b/src/diff.c --- a/src/diff.c +++ b/src/diff.c @@ -712,7 +712,7 @@ diff_write_buffer(buf_T *buf, diffin_T * // xdiff requires one big block of memory with all the text. for (lnum = 1; lnum <= buf->b_ml.ml_line_count; ++lnum) - len += STRLEN(ml_get_buf(buf, lnum, FALSE)) + 1; + len += (long)STRLEN(ml_get_buf(buf, lnum, FALSE)) + 1; ptr = lalloc(len, TRUE); if (ptr == NULL) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 395, +/**/ 394, /**/ 393,