Skip to content

Commit 434df7a

Browse files
committed
patch 8.2.3355: MS-Windows: compiler warning for 64-32 bit conversion
Problem: MS-Windows: compiler warning for 64-32 bit conversion. Solution: Add type casts.
1 parent 92755bb commit 434df7a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/memline.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4000,7 +4000,7 @@ ml_flush_line(buf_T *buf)
40004000
dp->db_txt_start -= extra;
40014001
#if defined(FEAT_BYTEOFF) && defined(FEAT_PROP_POPUP)
40024002
if (buf->b_has_textprop)
4003-
old_prop_len = old_len - STRLEN(new_line) - 1;
4003+
old_prop_len = old_len - (int)STRLEN(new_line) - 1;
40044004
#endif
40054005

40064006
// copy new line into the data block
@@ -4012,7 +4012,7 @@ ml_flush_line(buf_T *buf)
40124012
{
40134013
// Do not count the size of any text properties.
40144014
extra += old_prop_len;
4015-
extra -= new_len - STRLEN(new_line) - 1;
4015+
extra -= new_len - (int)STRLEN(new_line) - 1;
40164016
}
40174017
if (extra != 0)
40184018
ml_updatechunk(buf, lnum, (long)extra, ML_CHNK_UPDLINE);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3355,
758760
/**/
759761
3354,
760762
/**/

0 commit comments

Comments
 (0)