diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-04-26 18:28:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 18:28:49 +0200 |
commit | a1b045f60a22d366e255dfff1c54ed42ebe49284 (patch) | |
tree | 89965d1e8574a751b3c08c707a5ceece857b8521 /src/nvim/ops.c | |
parent | 6674d706d97d7e681a5404f79a1c5bba3af80bae (diff) | |
download | rneovim-a1b045f60a22d366e255dfff1c54ed42ebe49284.tar.gz rneovim-a1b045f60a22d366e255dfff1c54ed42ebe49284.tar.bz2 rneovim-a1b045f60a22d366e255dfff1c54ed42ebe49284.zip |
refactor(clang-tidy): remove redundant casts
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index b2c0dd6c01..b50ef72058 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4037,7 +4037,7 @@ int do_join(size_t count, int insert_space, int save_undo, int use_formatoptions // Don't move anything, just compute the final line length // and setup the array of space strings lengths for (t = 0; t < (linenr_T)count; t++) { - curr_start = ml_get((linenr_T)(curwin->w_cursor.lnum + t)); + curr_start = ml_get(curwin->w_cursor.lnum + t); curr = curr_start; if (t == 0 && setmark && (cmdmod.cmod_flags & CMOD_LOCKMARKS) == 0) { // Set the '[ mark. @@ -5555,7 +5555,7 @@ void cursor_pos_info(dict_T *dict) // Don't shorten this message, the user asked for it. tv_dict_add_nr(dict, S_LEN("words"), word_count); tv_dict_add_nr(dict, S_LEN("chars"), char_count); - tv_dict_add_nr(dict, S_LEN("bytes"), (varnumber_T)(byte_count + bom_count)); + tv_dict_add_nr(dict, S_LEN("bytes"), byte_count + bom_count); STATIC_ASSERT(sizeof("visual") == sizeof("cursor"), "key_len argument in tv_dict_add_nr is wrong"); |