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
index 783e6bc..38516c3 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -97,10 +97,10 @@
{
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 @@
len += STRLEN(entry->es_name) + 15;
}
- res = (char *)alloc(len);
+ res = (char *)alloc((int)len);
if (res != NULL)
{
STRCPY(res, "function ");