* include/freetype/internal/ftcalc.h (FT_MulFix_64): Silence UBSAN.

This commit is contained in:
Alexei Podtelezhnikov 2025-04-25 08:09:48 -04:00
parent 1019b1c2b9
commit 3467c2177c

View file

@ -94,7 +94,7 @@ FT_BEGIN_HEADER
FT_Int64 ab = MUL_INT64( a, b );
ab += 0x8000 + ( ab >> 63 ); /* rounding phase */
ab = ADD_INT64( ab, 0x8000 + ( ab >> 63 ) ); /* rounding phase */
return (FT_Long)( ab >> 16 );
}