From 6e253b26b2889cfff817b966c95e112bda050298 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 29 May 2021 11:05:41 +0200 Subject: Typos in previous commit. --- src/cid/cidload.c | 2 +- src/sdf/ftsdf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cid/cidload.c b/src/cid/cidload.c index ea53d6cdc..b22b53683 100644 --- a/src/cid/cidload.c +++ b/src/cid/cidload.c @@ -758,7 +758,7 @@ error = FT_Err_Ok; Exit: - *data_written = FT_ULong( d - data ); + *data_written = (FT_ULong)( d - data ); return error; } diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c index 70c7a08bb..f9b16bc6f 100644 --- a/src/sdf/ftsdf.c +++ b/src/sdf/ftsdf.c @@ -3308,9 +3308,9 @@ dist.distance = square_root( dist.distance ); if ( internal_params.flip_y ) - index = FT_UInt( y * width + x ); + index = (FT_UInt)( y * width + x ); else - index = FT_UInt( ( rows - y - 1 ) * width + x ); + index = (FT_UInt)( ( rows - y - 1 ) * width + x ); /* check whether the pixel is set or not */ if ( dists[index].sign == 0 ) -- cgit v1.2.1