* src/psaux/cffdecode.c (cff_op_sqrt): Correct upper limit.

This commit is contained in:
Alexei Podtelezhnikov 2023-09-11 20:45:16 -04:00
parent 18eb93556c
commit 7d45cf2c8f
1 changed files with 1 additions and 1 deletions

View File

@ -1753,7 +1753,7 @@
/* without upper limit the loop below might not finish */
if ( args[0] > 0x7FFFFFFFL )
args[0] = 46341;
args[0] = 0xB504F3L; /* sqrt( 32768.0 ) */
else if ( args[0] > 0 )
{
FT_Fixed root = 1 << ( ( 17 + FT_MSB( args[0] ) ) >> 1 );