From: Bram Moolenaar Date: Fri, 28 Aug 2020 14:38:11 +0000 (+0200) Subject: patch 8.2.1532: compiler warning for conversion of size_t to long X-Git-Tag: v8.2.1532 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2566054a7f406a6c9a082e7fd5f1597164668ca9;p=vim patch 8.2.1532: compiler warning for conversion of size_t to long Problem: Compiler warning for conversion of size_t to long. Solution: Add type cast. --- diff --git a/src/eval.c b/src/eval.c index 2d2ad1b5f..d12708e22 100644 --- a/src/eval.c +++ b/src/eval.c @@ -5392,7 +5392,7 @@ string_slice(char_u *str, varnumber_T first, varnumber_T last) if (start_byte < 0) start_byte = 0; // first index very negative: use zero if (last == -1) - end_byte = slen; + end_byte = (long)slen; else { end_byte = char_idx2byte(str, slen, last); diff --git a/src/version.c b/src/version.c index 35bb3c397..ba62765bc 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1532, /**/ 1531, /**/