From: Paul Eggert Date: Tue, 30 Apr 2024 08:20:13 +0000 (-0700) Subject: Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfont.c X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=edaf03bc924f5e8d444a419cb452a8c5fd244755;p=emacs.git Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfont.c * src/hbfont.c (hbfont_shape): Add an eassume. (cherry picked from commit c57a03c75e91a42c49a293a9466b087a1e1592da) --- diff --git a/src/hbfont.c b/src/hbfont.c index 40bb44c7d04..37ed4132492 100644 --- a/src/hbfont.c +++ b/src/hbfont.c @@ -552,6 +552,8 @@ hbfont_shape (Lisp_Object lgstring, Lisp_Object direction) cluster_offset = to - from; } + eassume (0 <= from); + /* All the glyphs in a cluster have the same values of FROM and TO. */ LGLYPH_SET_FROM (lglyph, from); /* This heuristic is for when the Lisp shape-gstring function