patch 8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643)
diff --git a/src/ui.c b/src/ui.c
index b37df49..a6cee80 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1106,8 +1106,8 @@
{
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 @@
{
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;
}