[cff] Minor.

* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>:
Remove dead code.
This commit is contained in:
Werner Lemberg 2016-02-07 11:42:37 +01:00
parent 950f16969e
commit a1460704d9
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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').

View File

@ -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;
}