mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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)
|
||||
{
|
||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1907,
|
||||
/**/
|
||||
1906,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user