diff options
author | John Szakmeister <john@szakmeister.net> | 2015-03-13 07:09:08 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2015-03-13 07:09:08 -0400 |
commit | c015eabe13bd37fb7d129da20904dd172b0bd3a1 (patch) | |
tree | 1b4a910ce85a78a265d2b2c708e3d47b7da08826 /src/nvim/ex_cmds.c | |
parent | b5bb6269b0f27c5192eaed6a069ba564c278760a (diff) | |
parent | 9925b3a0477e5af348a8348544e69a65a9222c1b (diff) | |
download | rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.gz rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.bz2 rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.zip |
Merge pull request #2118 from rev112/fix_redundant_cast
Remove redundant casts
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index a47b303a4a..739243cbee 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5136,7 +5136,7 @@ void fix_help_buffer(void) // Note: We cannot just do `&NameBuff` because it is a statically sized array // so `NameBuff == &NameBuff` according to C semantics. - char_u *buff_list[1] = {(char_u*) NameBuff}; + char_u *buff_list[1] = {NameBuff}; if (gen_expand_wildcards(1, buff_list, &fcount, &fnames, EW_FILE|EW_SILENT) == OK && fcount > 0) { @@ -5308,7 +5308,7 @@ void ex_helptags(exarg_T *eap) // Note: We cannot just do `&NameBuff` because it is a statically sized array // so `NameBuff == &NameBuff` according to C semantics. - char_u *buff_list[1] = {(char_u*) NameBuff}; + char_u *buff_list[1] = {NameBuff}; if (gen_expand_wildcards(1, buff_list, &filecount, &files, EW_FILE|EW_SILENT) == FAIL || filecount == 0) { @@ -5411,7 +5411,7 @@ helptags_one ( // Note: We cannot just do `&NameBuff` because it is a statically sized array // so `NameBuff == &NameBuff` according to C semantics. - char_u *buff_list[1] = {(char_u*) NameBuff}; + char_u *buff_list[1] = {NameBuff}; if (gen_expand_wildcards(1, buff_list, &filecount, &files, EW_FILE|EW_SILENT) == FAIL || filecount == 0) { |