summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-06 19:53:43 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-06 19:53:43 +0100
commit4d7a248b644b647340ed1a25729e2ed586a54864 (patch)
treeaefe96b4d600664945c828c7c0b44e851a4e3ca7 /src/scriptfile.c
parentb376ace1aeaa7614debc725487d75c8f756dd773 (diff)
downloadvim-git-4d7a248b644b647340ed1a25729e2ed586a54864.tar.gz
patch 8.2.0091: compiler warnings for size_t / int typesv8.2.0091
Problem: Compiler warnings for size_t / int types. Solution: Change type to size_t. (Mike Williams)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 783e6bc75..38516c360 100644
--- 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 ");