Fix a couple of MSVC warnings.

* src/base/ftcalc.c (FT_MulAddFix): Add cast.
* src/sfnt/ttcolr.c (tt_face_get_colorline_stops, read_paint): Ditto.
This commit is contained in:
Alexei Podtelezhnikov 2023-03-05 22:05:24 -05:00
parent 70946f6dc6
commit fc01e7dd67
2 changed files with 3 additions and 3 deletions

View File

@ -1103,7 +1103,7 @@
for ( i = 0; i < count; ++i )
temp += (FT_Int64)s[i] * f[i];
return ( temp + 0x8000 ) >> 16;
return (FT_Int32)( ( temp + 0x8000 ) >> 16 );
#else
temp.hi = 0;
temp.lo = 0;

View File

@ -699,7 +699,7 @@
item_deltas ) )
return 0;
apaint->u.solid.color.alpha += item_deltas[0];
apaint->u.solid.color.alpha += (FT_F2Dot14)item_deltas[0];
}
#endif
@ -1646,7 +1646,7 @@
return 0;
color_stop->stop_offset += F2DOT14_TO_FIXED( item_deltas[0] );
color_stop->color.alpha += item_deltas[1];
color_stop->color.alpha += (FT_F2Dot14)item_deltas[1];
}
#else
FT_UNUSED( var_index_base );