Fix clang warnings.

* src/cffload.c (cff_blend_doBlend): Fix type of `sum`.
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Fix type of
  `word_delta_count`.
This commit is contained in:
Werner Lemberg 2023-08-25 18:05:01 +02:00
parent aa5f001874
commit d42679b93d
2 changed files with 5 additions and 5 deletions

View File

@ -1361,7 +1361,7 @@
for ( i = 0; i < numBlends; i++ ) for ( i = 0; i < numBlends; i++ )
{ {
const FT_Int32* weight = &blend->BV[1]; const FT_Int32* weight = &blend->BV[1];
FT_UInt32 sum; FT_Fixed sum;
/* convert inputs to 16.16 fixed point */ /* convert inputs to 16.16 fixed point */

View File

@ -621,10 +621,10 @@
{ {
GX_ItemVarData varData = &itemStore->varData[i]; GX_ItemVarData varData = &itemStore->varData[i];
FT_UInt item_count; FT_UInt item_count;
FT_UInt word_delta_count; FT_UShort word_delta_count;
FT_UInt region_idx_count; FT_UInt region_idx_count;
FT_UInt per_region_size; FT_UInt per_region_size;
if ( FT_STREAM_SEEK( offset + dataOffsetArray[i] ) ) if ( FT_STREAM_SEEK( offset + dataOffsetArray[i] ) )