diff options
author | =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> | 2022-01-28 15:28:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-28 15:28:04 +0000 |
commit | 420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch) | |
tree | 89938a5800078e96cdf992aca87e1c79a2f255ac /src/buffer.c | |
parent | fb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff) |
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index e50b01d4a7..24da829847 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1624,7 +1624,7 @@ do_bufdel( // also be deleted, etc. if (bnr == curbuf->b_fnum) do_current = bnr; - else if (do_buffer_ext(command, DOBUF_FIRST, FORWARD, (int)bnr, + else if (do_buffer_ext(command, DOBUF_FIRST, FORWARD, bnr, DOBUF_NOPOPUP | (forceit ? DOBUF_FORCEIT : 0)) == OK) ++deleted; @@ -3754,7 +3754,7 @@ fileinfo( } else { - p = (char *)msg_trunc_attr(buffer, FALSE, 0); + p = msg_trunc_attr(buffer, FALSE, 0); if (restart_edit != 0 || (msg_scrolled && !need_wait_return)) // Need to repeat the message after redrawing when: // - When restart_edit is set (otherwise there will be a delay |