mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.1907
Problem: Warnings from 64 bit compiler. Solution: Change type to size_t. (Mike Williams)
This commit is contained in:
@@ -2574,9 +2574,9 @@ barline_parse(vir_T *virp, char_u *text, bval_T *values)
|
||||
|
||||
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 @@ barline_parse(vir_T *virp, char_u *text, bval_T *values)
|
||||
*/
|
||||
++p;
|
||||
len = getdigits(&p);
|
||||
buf = alloc(len + 1);
|
||||
buf = alloc((int)(len + 1));
|
||||
p = buf;
|
||||
for (todo = len; todo > 0; todo -= n)
|
||||
{
|
||||
|
Reference in New Issue
Block a user