diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-16 21:15:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-16 21:15:32 +0200 |
commit | 434df7a401c92d4084bb0a01ffd6d1737ae0193b (patch) | |
tree | 1adcb4664e306f6eeb80fb33f7241d1de74fc9b9 /src/memline.c | |
parent | 92755bba30ec7a4c72ae0280420ba5c3847a9385 (diff) | |
download | vim-git-434df7a401c92d4084bb0a01ffd6d1737ae0193b.tar.gz |
patch 8.2.3355: MS-Windows: compiler warning for 64-32 bit conversionv8.2.3355
Problem: MS-Windows: compiler warning for 64-32 bit conversion.
Solution: Add type casts.
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c index f4649841f..5aeee900f 100644 --- a/src/memline.c +++ b/src/memline.c @@ -4000,7 +4000,7 @@ ml_flush_line(buf_T *buf) dp->db_txt_start -= extra; #if defined(FEAT_BYTEOFF) && defined(FEAT_PROP_POPUP) if (buf->b_has_textprop) - old_prop_len = old_len - STRLEN(new_line) - 1; + old_prop_len = old_len - (int)STRLEN(new_line) - 1; #endif // copy new line into the data block @@ -4012,7 +4012,7 @@ ml_flush_line(buf_T *buf) { // Do not count the size of any text properties. extra += old_prop_len; - extra -= new_len - STRLEN(new_line) - 1; + extra -= new_len - (int)STRLEN(new_line) - 1; } if (extra != 0) ml_updatechunk(buf, lnum, (long)extra, ML_CHNK_UPDLINE); |