summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-16 15:31:32 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-16 15:31:32 +0000
commitaf0167fa3917bcaf4e066a08977068b1964ac78d (patch)
tree8d99a0dc0e3b95b8a9404728841943f843142573 /src/ex_docmd.c
parent8f0b2d46c7020c2ae097c748940f74b3af1383f7 (diff)
updated for version 7.2-177v7.2.177
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 1c4ec59218..54d5b2dba7 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3004,7 +3004,7 @@ modifier_len(cmd)
if (VIM_ISDIGIT(*cmd))
p = skipwhite(skipdigits(cmd));
- for (i = 0; i < sizeof(cmdmods) / sizeof(struct cmdmod); ++i)
+ for (i = 0; i < (int)(sizeof(cmdmods) / sizeof(struct cmdmod)); ++i)
{
for (j = 0; p[j] != NUL; ++j)
if (p[j] != cmdmods[i].name[j])
@@ -3032,7 +3032,7 @@ cmd_exists(name)
char_u *p;
/* Check command modifiers. */
- for (i = 0; i < sizeof(cmdmods) / sizeof(struct cmdmod); ++i)
+ for (i = 0; i < (int)(sizeof(cmdmods) / sizeof(struct cmdmod)); ++i)
{
for (j = 0; name[j] != NUL; ++j)
if (name[j] != cmdmods[i].name[j])
@@ -6093,7 +6093,7 @@ get_user_cmd_flags(xp, idx)
{"bang", "bar", "buffer", "complete", "count",
"nargs", "range", "register"};
- if (idx >= sizeof(user_cmd_flags) / sizeof(user_cmd_flags[0]))
+ if (idx >= (int)(sizeof(user_cmd_flags) / sizeof(user_cmd_flags[0])))
return NULL;
return (char_u *)user_cmd_flags[idx];
}
@@ -6108,7 +6108,7 @@ get_user_cmd_nargs(xp, idx)
{
static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
- if (idx >= sizeof(user_cmd_nargs) / sizeof(user_cmd_nargs[0]))
+ if (idx >= (int)(sizeof(user_cmd_nargs) / sizeof(user_cmd_nargs[0])))
return NULL;
return (char_u *)user_cmd_nargs[idx];
}
@@ -9144,10 +9144,9 @@ ex_startinsert(eap)
/*
* ":stopinsert"
*/
-/*ARGSUSED*/
static void
ex_stopinsert(eap)
- exarg_T *eap;
+ exarg_T *eap UNUSED;
{
restart_edit = 0;
stop_insert_mode = TRUE;