mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -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 ");
|
||||
|
Reference in New Issue
Block a user