* 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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue