To: vim_dev@googlegroups.com Subject: Patch 7.4.1907 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1907 Problem: Warnings from 64 bit compiler. Solution: Change type to size_t. (Mike Williams) Files: src/ex_cmds.c *** ../vim-7.4.1906/src/ex_cmds.c 2016-06-06 21:38:39.159553227 +0200 --- src/ex_cmds.c 2016-06-07 22:47:44.662307701 +0200 *************** *** 2574,2582 **** if (vim_isdigit(p[1])) { ! int len; ! int todo; ! int n; /* String value was split into lines that are each shorter * than LSIZE: --- 2574,2582 ---- if (vim_isdigit(p[1])) { ! size_t len; ! size_t todo; ! size_t n; /* String value was split into lines that are each shorter * than LSIZE: *************** *** 2586,2592 **** */ ++p; len = getdigits(&p); ! buf = alloc(len + 1); p = buf; for (todo = len; todo > 0; todo -= n) { --- 2586,2592 ---- */ ++p; len = getdigits(&p); ! buf = alloc((int)(len + 1)); p = buf; for (todo = len; todo > 0; todo -= n) { *** ../vim-7.4.1906/src/version.c 2016-06-07 22:16:31.690333465 +0200 --- src/version.c 2016-06-07 22:48:28.094307103 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1907, /**/ -- hundred-and-one symptoms of being an internet addict: 60. As your car crashes through the guardrail on a mountain road, your first instinct is to search for the "back" button. /// 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 ///