mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0395: compiler warning on 64-bit MS-Windows
Problem: Compiler warning on 64-bit MS-Windows. Solution: Add type cast. (Mike Williams)
This commit is contained in:
@@ -712,7 +712,7 @@ diff_write_buffer(buf_T *buf, diffin_T *din)
|
|||||||
|
|
||||||
// xdiff requires one big block of memory with all the text.
|
// xdiff requires one big block of memory with all the text.
|
||||||
for (lnum = 1; lnum <= buf->b_ml.ml_line_count; ++lnum)
|
for (lnum = 1; lnum <= buf->b_ml.ml_line_count; ++lnum)
|
||||||
len += STRLEN(ml_get_buf(buf, lnum, FALSE)) + 1;
|
len += (long)STRLEN(ml_get_buf(buf, lnum, FALSE)) + 1;
|
||||||
ptr = lalloc(len, TRUE);
|
ptr = lalloc(len, TRUE);
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
{
|
{
|
||||||
|
@@ -794,6 +794,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
395,
|
||||||
/**/
|
/**/
|
||||||
394,
|
394,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user