summaryrefslogtreecommitdiff
path: root/src/base/ftcalc.c
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-03-05 22:05:24 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-03-05 22:05:24 -0500
commitfc01e7dd6710efade138d41b832dcd3f5893e3f9 (patch)
tree0d989ee8a39993372793f1eb33fadda3ee87fbbb /src/base/ftcalc.c
parent70946f6dc6774fad2424bd8349a4e192cd4fd6fa (diff)
downloadfreetype2-fc01e7dd6710efade138d41b832dcd3f5893e3f9.tar.gz
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.
Diffstat (limited to 'src/base/ftcalc.c')
-rw-r--r--src/base/ftcalc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index 13e74f335..997921883 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -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;