[cff] Minor. * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>: Remove dead code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/ChangeLog b/ChangeLog
index 42f93b0..a045395 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2016-02-07 Werner Lemberg <wl@gnu.org>
+ [cff] Minor.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>:
+ Remove dead code.
+
+2016-02-07 Werner Lemberg <wl@gnu.org>
+
[cff] Implement missing operators in new engine (except `random').
* src/cff/cf2font.h (CF2_STORAGE_SIZE): New macro.
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index 36a353d..df57d67 100644
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -2082,15 +2082,14 @@
if ( args[0] > 0 )
{
- FT_Int count = 9;
- FT_Fixed root = args[0];
+ FT_Fixed root = args[0];
FT_Fixed new_root;
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;
}