0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4241: some type casts are redundant

Problem:    Some type casts are redundant.
Solution:   Remove the type casts. (closes #9643)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2022-01-28 15:28:04 +00:00
committed by Bram Moolenaar
parent fb80862e49
commit 420fabcd4f
32 changed files with 92 additions and 93 deletions

View File

@@ -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