Commit 3b45f564 authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Werner Lemberg
Browse files

* 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).
parent 64e26ad3
Pipeline #455323 passed with stage
in 10 minutes and 43 seconds
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment