patch 7.4.1907
Problem: Warnings from 64 bit compiler.
Solution: Change type to size_t. (Mike Williams)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 9f1db65..62b39a2 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2574,9 +2574,9 @@
if (vim_isdigit(p[1]))
{
- int len;
- int todo;
- int n;
+ size_t len;
+ size_t todo;
+ size_t n;
/* String value was split into lines that are each shorter
* than LSIZE:
@@ -2586,7 +2586,7 @@
*/
++p;
len = getdigits(&p);
- buf = alloc(len + 1);
+ buf = alloc((int)(len + 1));
p = buf;
for (todo = len; todo > 0; todo -= n)
{