Patch 9.0.0997
Problem:    Coverity warns for dead code.
Solution:   Don't use ASCII_ISUPPER() for a negative value.
Files:      src/term.c


*** ../vim-9.0.0996/src/term.c  2022-12-03 00:00:32.345735603 +0000
--- src/term.c  2022-12-03 10:11:34.951098438 +0000
***************
*** 5296,5302 ****
      if (!VIM_ISDIGIT(*ap))
        first = *ap++;
  
!     if (ASCII_ISUPPER(first))
      {
        // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
        // no argument follows.
--- 5296,5302 ----
      if (!VIM_ISDIGIT(*ap))
        first = *ap++;
  
!     if (first >= 'A' && first <= 'Z')
      {
        // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
        // no argument follows.
*** ../vim-9.0.0996/src/version.c       2022-12-03 00:00:32.345735603 +0000
--- src/version.c       2022-12-03 10:12:18.367040348 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     997,
  /**/

-- 
I noticed my daughter's Disney-net password on a sticky note:
"MickeyMinnieGoofyPluto".  I asked her why it was so long.
"Because they say it has to have at least four characters."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221203101415.586321C171C%40moolenaar.net.

Raspunde prin e-mail lui