mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 05:28:00 +02:00
* include/freetype/internal/ftcalc.h (FT_MulFix_64): Silence UBSAN.
This commit is contained in:
parent
1019b1c2b9
commit
3467c2177c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue