summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-20 22:48:58 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-20 22:48:58 +0200
commit405dadb63ea2b7aa4c8c659807506a35a8a9504c (patch)
treeb051a9c2a2f0274d6357d7b6ecce173fdf5fd639 /src/ex_cmds2.c
parent7dda86f2ff35bb80afce4da24782fd58216bbe50 (diff)
downloadvim-git-405dadb63ea2b7aa4c8c659807506a35a8a9504c.tar.gz
patch 8.0.1740: warning for signed-unsigned incompatibilityv8.0.1740
Problem: Warning for signed-unsigned incompatibility. Solution: Change type from "char *" to "char_u *". (John Marriott)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index c8e9785cc..b11bff43c 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2751,7 +2751,7 @@ ex_args(exarg_T *eap)
*/
if (ARGCOUNT > 0)
{
- char **items = (char **)alloc(sizeof(char *) * ARGCOUNT);
+ char_u **items = (char_u **)alloc(sizeof(char_u *) * ARGCOUNT);
if (items != NULL)
{
@@ -2760,7 +2760,7 @@ ex_args(exarg_T *eap)
gotocmdline(TRUE);
for (i = 0; i < ARGCOUNT; ++i)
- items[i] = (char *)alist_name(&ARGLIST[i]);
+ items[i] = alist_name(&ARGLIST[i]);
list_in_columns(items, ARGCOUNT, curwin->w_arg_idx);
vim_free(items);
}