]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify GCC 13 -fanalyzer in tty_menu_activate
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 01:51:22 +0000 (18:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 02:28:10 +0000 (19:28 -0700)
* src/term.c (tty_menu_activate): Trivially reword comparison
to pacify gcc -fanalyzer with GCC 13.

src/term.c

index 53ba2a231e43a9792f33d0977c559b29c169b587..2b28d3303e813724f3d50241d8eedbf28f35e98e 100644 (file)
@@ -3319,7 +3319,7 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
                       active submenu.  */
                    if (i != statecount - 2
                        || state[i].menu->submenu[dy] != state[i + 1].menu)
-                     while (i != statecount - 1)
+                     while (i < statecount - 1)
                        {
                          statecount--;
                          screen_update (sf, state[statecount].screen_behind);