forked from aniani/vim
patch 9.0.0997: Coverity warns for dead code
Problem: Coverity warns for dead code. Solution: Don't use ASCII_ISUPPER() for a negative value.
This commit is contained in:
@@ -5296,7 +5296,7 @@ handle_csi(
|
|||||||
if (!VIM_ISDIGIT(*ap))
|
if (!VIM_ISDIGIT(*ap))
|
||||||
first = *ap++;
|
first = *ap++;
|
||||||
|
|
||||||
if (ASCII_ISUPPER(first))
|
if (first >= 'A' && first <= 'Z')
|
||||||
{
|
{
|
||||||
// If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
|
// If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
|
||||||
// no argument follows.
|
// no argument follows.
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
997,
|
||||||
/**/
|
/**/
|
||||||
996,
|
996,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user