shithub: freetype+ttf2subf

Download patch

ref: a1460704d9389cd4ae15ac104195c73798001f14
parent: 950f16969e18307e7373fa3c64e51b1c44d0b754
author: Werner Lemberg <[email protected]>
date: Sun Feb 7 06:42:37 EST 2016

[cff] Minor.

* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>:
Remove dead code.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2016-02-07  Werner Lemberg  <[email protected]>
 
+	[cff] Minor.
+
+	* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>:
+	Remove dead code.
+
+2016-02-07  Werner Lemberg  <[email protected]>
+
 	[cff] Implement missing operators in new engine (except `random').
 
 	* src/cff/cf2font.h (CF2_STORAGE_SIZE): New macro.
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -2082,8 +2082,7 @@
 
           if ( args[0] > 0 )
           {
-            FT_Int    count = 9;
-            FT_Fixed  root  = args[0];
+            FT_Fixed  root = args[0];
             FT_Fixed  new_root;
 
 
@@ -2090,7 +2089,7 @@
             for (;;)
             {
               new_root = ( root + FT_DivFix( args[0], root ) + 1 ) >> 1;
-              if ( new_root == root || count <= 0 )
+              if ( new_root == root )
                 break;
               root = new_root;
             }