From 1a69dc7c16e1708dcdfe2e342bc0d9c7735c1c3a Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 9 Mar 2014 06:06:58 +0100 Subject: [PATCH] * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning. --- ChangeLog | 4 ++++ src/sfnt/ttcmap.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ea1eb4acb..a19fd6fc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-09 Sean McBride + + * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning. + 2014-03-06 Werner Lemberg * Version 2.5.3 released. diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c index c717f5ffc..f9acf5d72 100644 --- a/src/sfnt/ttcmap.c +++ b/src/sfnt/ttcmap.c @@ -3473,10 +3473,9 @@ /* only recognize format 0 */ if ( TT_NEXT_USHORT( p ) != 0 ) { - p -= 2; FT_ERROR(( "tt_face_build_cmaps:" " unsupported `cmap' table format = %d\n", - TT_PEEK_USHORT( p ) )); + TT_PEEK_USHORT( p - 2) )); return FT_THROW( Invalid_Table ); }