aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
committerAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
commit9925b3a0477e5af348a8348544e69a65a9222c1b (patch)
tree467cdcd1d1f9f6662aa7ea9331f4ddceacbdbfb8 /src/nvim/syntax.c
parentc0a668aa26a01145bee1d8162e14bacd0a10eca2 (diff)
downloadrneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.gz
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.bz2
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.zip
Remove redundant casts
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 4f67507ea2..07f18bf93b 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -3223,8 +3223,8 @@ static void syn_clear_one(int id, int syncing)
/* Clear keywords only when not ":syn sync clear group-name" */
if (!syncing) {
- (void)syn_clear_keyword(id, &curwin->w_s->b_keywtab);
- (void)syn_clear_keyword(id, &curwin->w_s->b_keywtab_ic);
+ syn_clear_keyword(id, &curwin->w_s->b_keywtab);
+ syn_clear_keyword(id, &curwin->w_s->b_keywtab_ic);
}
/* clear the patterns for "id" */
@@ -6068,7 +6068,7 @@ do_highlight (
if (ends_excmd(*line)) {
for (int i = 1; i <= highlight_ga.ga_len && !got_int; ++i)
/* TODO: only call when the group has attributes set */
- highlight_list_one((int)i);
+ highlight_list_one(i);
return;
}