* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.

Reported by Armin Hasitzka.
cmakelists-updates
Alexei Podtelezhnikov 6 years ago
parent 81445c034a
commit 7b1c7585d7
  1. 6
      ChangeLog
  2. 4
      src/bdf/bdfdrivr.c

@ -1,3 +1,9 @@
2019-06-26 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.
Reported by Armin Hasitzka.
2019-06-16 Werner Lemberg <wl@gnu.org>
* src/tools/apinames.c: Formatting, minor edits.

@ -106,7 +106,7 @@ THE SOFTWARE.
FT_ULong code;
if ( mid > max || mid < min )
if ( mid >= max || mid < min )
mid = ( min + max ) >> 1;
code = encodings[mid].enc;
@ -152,7 +152,7 @@ THE SOFTWARE.
FT_ULong code; /* same as BDF_encoding_el.enc */
if ( mid > max || mid < min )
if ( mid >= max || mid < min )
mid = ( min + max ) >> 1;
code = encodings[mid].enc;

Loading…
Cancel
Save