* src/base/ftobjs.c (FT_Request_Metrics): Fix build warning on Android.
Use casts since `FT_USHORT_MAX` is unsigned short in bionic (libc used in Android).
This commit is contained in:
parent
64e26ad3a2
commit
3b45f564e9
@ -3230,8 +3230,8 @@
|
||||
|
||||
scaled_w = ( scaled_w + 32 ) >> 6;
|
||||
scaled_h = ( scaled_h + 32 ) >> 6;
|
||||
if ( scaled_w > FT_USHORT_MAX ||
|
||||
scaled_h > FT_USHORT_MAX )
|
||||
if ( scaled_w > (FT_Long)FT_USHORT_MAX ||
|
||||
scaled_h > (FT_Long)FT_USHORT_MAX )
|
||||
{
|
||||
FT_ERROR(( "FT_Request_Metrics: Resulting ppem size too large\n" ));
|
||||
error = FT_ERR( Invalid_Pixel_Size );
|
||||
|
Loading…
x
Reference in New Issue
Block a user