shithub: freetype+ttf2subf

Download patch

ref: c18c1882c22593c3c51d1d0958493c89a567545c
parent: fcbc82e69e7b114b0db75e955896107d611898e6
author: Alexei Podtelezhnikov <[email protected]>
date: Tue Feb 28 02:52:04 EST 2012

[type42] Minor code optimization (again).

* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-26  Alexei Podtelezhnikov  <[email protected]>
+
+	[type42] Minor code optimization (again).
+
+	* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
+
 2012-02-26  Mateusz Jurczyk  <[email protected]>
 	    Werner Lemberg  <[email protected]>
 
--- a/src/type42/t42parse.c
+++ b/src/type42/t42parse.c
@@ -607,9 +607,9 @@
         goto Fail;
       }
 
-      /* A string can have a trailing zero byte for padding.  Ignore it. */
-      if ( string_size                                             &&
-           string_buf[string_size - 1] == 0 && ( string_size & 1 ) )
+      /* A string can have a trailing zero (odd) byte for padding. */
+      /* Ignore it.                                                */
+      if ( ( string_size & 1 ) && string_buf[string_size - 1] == 0 )
         string_size--;
 
       if ( !string_size )