aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.c
diff options
context:
space:
mode:
authorAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
committerAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
commit9925b3a0477e5af348a8348544e69a65a9222c1b (patch)
tree467cdcd1d1f9f6662aa7ea9331f4ddceacbdbfb8 /src/nvim/mbyte.c
parentc0a668aa26a01145bee1d8162e14bacd0a10eca2 (diff)
downloadrneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.gz
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.bz2
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.zip
Remove redundant casts
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r--src/nvim/mbyte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index 5c89e9d8eb..fd6050f2d6 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -3956,8 +3956,8 @@ static int 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;
}
@@ -3966,7 +3966,7 @@ static int 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;
}