shithub: freetype+ttf2subf

Download patch

ref: 1a69dc7c16e1708dcdfe2e342bc0d9c7735c1c3a
parent: ec8853cd18e1a0c275372769bdad37a79550ed66
author: Werner Lemberg <[email protected]>
date: Sun Mar 9 01:06:58 EST 2014

* src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-09  Sean McBride  <[email protected]>
+
+	* src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
+
 2014-03-06  Werner Lemberg  <[email protected]>
 
 	* Version 2.5.3 released.
--- 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 );
     }