# HG changeset patch # User Bram Moolenaar # Date 1578337206 -3600 # Node ID 5a62b4a0c961b092660378ea62cf773c733673ce # Parent 1bb31d1b3e660c6912cc6f1dfc33cea526ed9d09 patch 8.2.0091: compiler warnings for size_t / int types Commit: https://github.com/vim/vim/commit/4d7a248b644b647340ed1a25729e2ed586a54864 Author: Bram Moolenaar Date: Mon Jan 6 19:53:43 2020 +0100 patch 8.2.0091: compiler warnings for size_t / int types Problem: Compiler warnings for size_t / int types. Solution: Change type to size_t. (Mike Williams) diff --git a/src/scriptfile.c b/src/scriptfile.c --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -97,10 +97,10 @@ estack_sfile(void) { estack_T *entry; #ifdef FEAT_EVAL - int len; + size_t len; int idx; char *res; - int done; + size_t done; #endif entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1; @@ -126,7 +126,7 @@ estack_sfile(void) len += STRLEN(entry->es_name) + 15; } - res = (char *)alloc(len); + res = (char *)alloc((int)len); if (res != NULL) { STRCPY(res, "function "); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 91, +/**/ 90, /**/ 89,