0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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

@@ -1106,8 +1106,8 @@ check_col(int col)
{
if (col < 0)
return 0;
if (col >= (int)screen_Columns)
return (int)screen_Columns - 1;
if (col >= screen_Columns)
return screen_Columns - 1;
return col;
}
@@ -1119,8 +1119,8 @@ check_row(int row)
{
if (row < 0)
return 0;
if (row >= (int)screen_Rows)
return (int)screen_Rows - 1;
if (row >= screen_Rows)
return screen_Rows - 1;
return row;
}