diff options
author | John Szakmeister <john@szakmeister.net> | 2015-03-13 07:09:08 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2015-03-13 07:09:08 -0400 |
commit | c015eabe13bd37fb7d129da20904dd172b0bd3a1 (patch) | |
tree | 1b4a910ce85a78a265d2b2c708e3d47b7da08826 /src/nvim/mbyte.c | |
parent | b5bb6269b0f27c5192eaed6a069ba564c278760a (diff) | |
parent | 9925b3a0477e5af348a8348544e69a65a9222c1b (diff) | |
download | rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.gz rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.bz2 rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.zip |
Merge pull request #2118 from rev112/fix_redundant_cast
Remove redundant casts
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 8 |
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; } |