To: vim_dev@googlegroups.com Subject: Patch 8.0.1626 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1626 Problem: Compiler warning for possible loss of data. Solution: Use size_t instead of int. (Christian Brabandt) Files: src/terminal.c *** ../vim-8.0.1625/src/terminal.c 2018-03-20 18:35:31.158086030 +0100 --- src/terminal.c 2018-03-21 22:24:57.291937899 +0100 *************** *** 3773,3781 **** if (opt.jo_term_name == NULL) { ! int len = STRLEN(fname1) + 12; ! fname_tofree = alloc(len); if (fname_tofree != NULL) { vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1); --- 3773,3781 ---- if (opt.jo_term_name == NULL) { ! size_t len = STRLEN(fname1) + 12; ! fname_tofree = alloc((int)len); if (fname_tofree != NULL) { vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1); *** ../vim-8.0.1625/src/version.c 2018-03-20 21:24:40.953118253 +0100 --- src/version.c 2018-03-21 22:25:49.627611793 +0100 *************** *** 768,769 **** --- 768,771 ---- { /* Add new patch number below this line */ + /**/ + 1626, /**/ -- Change is inevitable, except from a vending machine. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///