0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2020-01-06 19:53:43 +01:00
parent b376ace1ae
commit 4d7a248b64
2 changed files with 5 additions and 3 deletions

View File

@ -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 ");

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
91,
/**/
90,
/**/