diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-03-11 15:04:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 15:04:48 +0100 |
commit | c3a6ff6aa3be259255976b1178dd07ac876ff124 (patch) | |
tree | 8e26b411ff3707ad9cbcebb8a6044fbb13cb49ff /src/nvim/tui/tui.c | |
parent | 19858288b415ebea078dee88d12715409ea73c00 (diff) | |
download | rneovim-c3a6ff6aa3be259255976b1178dd07ac876ff124.tar.gz rneovim-c3a6ff6aa3be259255976b1178dd07ac876ff124.tar.bz2 rneovim-c3a6ff6aa3be259255976b1178dd07ac876ff124.zip |
fix(coverity): dead code and operands don't affect result #17662
* fix(coverity/349942): structurally dead code
* fix(coverity/331396): operands don't affect result
* fix(coverity/331393): operands don't affect result
* fix(coverity/331392): operands don't affect result
* fix(coverity/331384): operands don't affect result
* fix(coverity/331374): operands don't affect result
* fix(coverity/331372): operands don't affect result
* fix(coverity/331371): operands don't affect result
* fix(coverity/331364): operands don't affect result
* fix(coverity/105585): operands don't affect result
Diffstat (limited to 'src/nvim/tui/tui.c')
-rw-r--r-- | src/nvim/tui/tui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 1ad82b7290..79a6b9ed0e 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1475,8 +1475,8 @@ static void tui_guess_size(UI *ui) // 1 - look for non-default 'columns' and 'lines' options during startup if (data->is_starting && (Columns != DFLT_COLS || Rows != DFLT_ROWS)) { did_user_set_dimensions = true; - assert(Columns >= INT_MIN && Columns <= INT_MAX); - assert(Rows >= INT_MIN && Rows <= INT_MAX); + assert(Columns >= 0); + assert(Rows >= 0); width = Columns; height = Rows; goto end; |