Skip to content

Commit 89e3e98

Browse files
committed
* src/truetype/ttinterp.c (TT_DotFix14): Silence UBSAN.
1 parent 8082aba commit 89e3e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/truetype/ttinterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@
13271327
FT_Int64 c = ADD_INT64( MUL_INT64( ax, bx ), MUL_INT64( ay, by ) );
13281328

13291329

1330-
c += 0x2000 + ( c >> 63 ); /* rounding phase */
1330+
c = ADD_INT64( c, 0x2000 + ( c >> 63 ) ); /* rounding phase */
13311331

13321332
return (FT_F26Dot6)( c >> 14 );
13331333
}

0 commit comments

Comments
 (0)