# HG changeset patch # User Bram Moolenaar # Date 1546974907 -3600 # Node ID 00aa76a735e7396c4e5fd385d710cfb442a26498 # Parent 0351fa7879f9a87e3f7dfc8b893e11214f3c20cd patch 8.1.0703: compiler warnings with 64-bit compiler commit https://github.com/vim/vim/commit/8aef43b66cf280c79a75d81f43ce5223b9044e63 Author: Bram Moolenaar Date: Tue Jan 8 20:14:35 2019 +0100 patch 8.1.0703: compiler warnings with 64-bit compiler Problem: Compiler warnings with 64-bit compiler. Solution: Change types, add type casts. (Mike Williams) diff --git a/src/textprop.c b/src/textprop.c --- a/src/textprop.c +++ b/src/textprop.c @@ -357,12 +357,12 @@ get_text_props(buf_T *buf, linenr_T lnum static void set_text_props(linenr_T lnum, char_u *props, int len) { - char_u *text; - char_u *newtext; - size_t textlen; + char_u *text; + char_u *newtext; + int textlen; text = ml_get(lnum); - textlen = STRLEN(text) + 1; + textlen = (int)STRLEN(text) + 1; newtext = alloc(textlen + len); if (newtext == NULL) return; diff --git a/src/undo.c b/src/undo.c --- a/src/undo.c +++ b/src/undo.c @@ -1205,9 +1205,10 @@ serialize_header(bufinfo_T *bi, char_u * /* buffer-specific data */ undo_write_bytes(bi, (long_u)buf->b_ml.ml_line_count, 4); len = buf->b_u_line_ptr.ul_line == NULL - ? 0 : STRLEN(buf->b_u_line_ptr.ul_line); + ? 0L : (long)STRLEN(buf->b_u_line_ptr.ul_line); undo_write_bytes(bi, (long_u)len, 4); - if (len > 0 && fwrite_crypt(bi, buf->b_u_line_ptr.ul_line, (size_t)len) == FAIL) + if (len > 0 && fwrite_crypt(bi, buf->b_u_line_ptr.ul_line, (size_t)len) + == FAIL) return FAIL; undo_write_bytes(bi, (long_u)buf->b_u_line_lnum, 4); undo_write_bytes(bi, (long_u)buf->b_u_line_colnr, 4); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -800,6 +800,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 703, +/**/ 702, /**/ 701,