From: Bram Moolenaar Date: Fri, 15 Jul 2022 19:45:20 +0000 (+0100) Subject: patch 9.0.0054: compiler warning for size_t to int conversion X-Git-Tag: v9.0.0054 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7bd2f08e531f08723cdc677212a3633d11c9a97;p=vim patch 9.0.0054: compiler warning for size_t to int conversion Problem: Compiler warning for size_t to int conversion. Solution: Add type cast. (Mike Williams, closes #10741) --- diff --git a/src/insexpand.c b/src/insexpand.c index 9c598a89f..b49a631a6 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -643,7 +643,7 @@ ins_compl_infercase_gettext( if (ga_grow(&gap, IOSIZE) == FAIL) return (char_u *)"[failed]"; STRCPY(gap.ga_data, IObuff); - gap.ga_len = STRLEN(IObuff); + gap.ga_len = (int)STRLEN(IObuff); } else if (has_mbyte) p += (*mb_char2bytes)(wca[i++], p); diff --git a/src/version.c b/src/version.c index 9e7a9885c..8ea00e283 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 54, /**/ 53, /**/