diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-03 10:13:30 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-03 10:13:30 +0000 |
commit | 8ffb7e051da74afef7264e1f25a7142f15aa1f60 (patch) | |
tree | 96e7c55a4307f8b45102fc01c73422323369aef5 | |
parent | af19ec0bfad6b70f3b7898da7f786a348ac01b50 (diff) | |
download | vim-git-9.0.0997.tar.gz |
patch 9.0.0997: Coverity warns for dead codev9.0.0997
Problem: Coverity warns for dead code.
Solution: Don't use ASCII_ISUPPER() for a negative value.
-rw-r--r-- | src/term.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 3df121433..13e3709fb 100644 --- a/src/term.c +++ b/src/term.c @@ -5296,7 +5296,7 @@ handle_csi( if (!VIM_ISDIGIT(*ap)) first = *ap++; - if (ASCII_ISUPPER(first)) + if (first >= 'A' && first <= 'Z') { // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and // no argument follows. diff --git a/src/version.c b/src/version.c index 8ccf7d2b3..682beb087 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 997, +/**/ 996, /**/ 995, |