mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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)
6e272acc82
This commit is contained in:
parent
7b6c92eac1
commit
b7f2c7dd1d
@ -692,7 +692,7 @@ static int diff_write_buffer(buf_T *buf, diffin_T *din)
|
||||
|
||||
// xdiff requires one big block of memory with all the text.
|
||||
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 = xmalloc(len);
|
||||
if (ptr == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user