To: vim_dev@googlegroups.com Subject: Patch 8.2.3132 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3132 Problem: Compiler warns for size_t to colnr_T conversion. (Randall W. Morris) Solution: Add a type cast. Files: src/drawscreen.c *** ../vim-8.2.3131/src/drawscreen.c 2021-07-05 22:02:53.772180695 +0200 --- src/drawscreen.c 2021-07-09 15:52:48.876958887 +0200 *************** *** 2036,2042 **** { colnr_T t; ! pos.col = STRLEN(ml_get_buf(wp->w_buffer, pos.lnum, FALSE)); getvvcol(wp, &pos, NULL, NULL, &t); if (toc < t) --- 2036,2042 ---- { colnr_T t; ! pos.col = (int)STRLEN(ml_get_buf(wp->w_buffer, pos.lnum, FALSE)); getvvcol(wp, &pos, NULL, NULL, &t); if (toc < t) *** ../vim-8.2.3131/src/version.c 2021-07-08 22:20:47.371314825 +0200 --- src/version.c 2021-07-09 15:53:43.332877431 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3132, /**/ -- Contrary to popular belief, Unix is user friendly. It just happens to be selective about who it makes friends with. -- Dave Parnas /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///