To: vim_dev@googlegroups.com Subject: Patch 8.0.1740 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1740 Problem: Warning for signed-unsigned incompatibility. Solution: Change type from "char *" to "char_u *". (John Marriott) Files: src/ex_cmds2.c *** ../vim-8.0.1739/src/ex_cmds2.c 2018-04-20 21:58:16.446318499 +0200 --- src/ex_cmds2.c 2018-04-20 22:46:20.398322405 +0200 *************** *** 2751,2757 **** */ if (ARGCOUNT > 0) { ! char **items = (char **)alloc(sizeof(char *) * ARGCOUNT); if (items != NULL) { --- 2751,2757 ---- */ if (ARGCOUNT > 0) { ! char_u **items = (char_u **)alloc(sizeof(char_u *) * ARGCOUNT); if (items != NULL) { *************** *** 2760,2766 **** gotocmdline(TRUE); for (i = 0; i < ARGCOUNT; ++i) ! items[i] = (char *)alist_name(&ARGLIST[i]); list_in_columns(items, ARGCOUNT, curwin->w_arg_idx); vim_free(items); } --- 2760,2766 ---- gotocmdline(TRUE); for (i = 0; i < ARGCOUNT; ++i) ! items[i] = alist_name(&ARGLIST[i]); list_in_columns(items, ARGCOUNT, curwin->w_arg_idx); vim_free(items); } *** ../vim-8.0.1739/src/version.c 2018-04-20 22:29:06.148195078 +0200 --- src/version.c 2018-04-20 22:47:38.333851992 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1740, /**/ -- "The amigos also appear to be guilty of not citing the work of others who had gone before them. Even worse, they have a chapter about modeling time and space without making a single reference to Star Trek!" (Scott Ambler, reviewing the UML User Guide) /// 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 ///