patch 8.0.1626: compiler warning for possible loss of data
Problem: Compiler warning for possible loss of data.
Solution: Use size_t instead of int. (Christian Brabandt)
diff --git a/src/terminal.c b/src/terminal.c
index 0d035ff..18da710 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3773,9 +3773,9 @@
if (opt.jo_term_name == NULL)
{
- int len = STRLEN(fname1) + 12;
+ size_t len = STRLEN(fname1) + 12;
- fname_tofree = alloc(len);
+ fname_tofree = alloc((int)len);
if (fname_tofree != NULL)
{
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);