From 18eb93556c96fde66db57d59fe441a189dda3aee Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 11 Sep 2023 17:00:49 -0400 Subject: [PATCH] * src/psaux/cffdecode.c (cff_op_sqrt): Improve initial guess. --- src/psaux/cffdecode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/psaux/cffdecode.c b/src/psaux/cffdecode.c index 562d17d22..0f1cd683c 100644 --- a/src/psaux/cffdecode.c +++ b/src/psaux/cffdecode.c @@ -17,6 +17,7 @@ #include +#include #include #include #include @@ -1755,7 +1756,7 @@ args[0] = 46341; else if ( args[0] > 0 ) { - FT_Fixed root = args[0]; + FT_Fixed root = 1 << ( ( 17 + FT_MSB( args[0] ) ) >> 1 ); FT_Fixed new_root;