freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] Fix clang warnings.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] Fix clang warnings.
Date: Fri, 25 Aug 2023 16:33:13 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • d42679b9
    by Werner Lemberg at 2023-08-25T18:05:01+02:00
    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`.
    

2 changed files:

Changes:

  • src/cff/cffload.c
    ... ... @@ -1361,7 +1361,7 @@
    1361 1361
         for ( i = 0; i < numBlends; i++ )
    
    1362 1362
         {
    
    1363 1363
           const FT_Int32*  weight = &blend->BV[1];
    
    1364
    -      FT_UInt32        sum;
    
    1364
    +      FT_Fixed         sum;
    
    1365 1365
     
    
    1366 1366
     
    
    1367 1367
           /* convert inputs to 16.16 fixed point */
    

  • src/truetype/ttgxvar.c
    ... ... @@ -621,10 +621,10 @@
    621 621
         {
    
    622 622
           GX_ItemVarData  varData = &itemStore->varData[i];
    
    623 623
     
    
    624
    -      FT_UInt  item_count;
    
    625
    -      FT_UInt  word_delta_count;
    
    626
    -      FT_UInt  region_idx_count;
    
    627
    -      FT_UInt  per_region_size;
    
    624
    +      FT_UInt    item_count;
    
    625
    +      FT_UShort  word_delta_count;
    
    626
    +      FT_UInt    region_idx_count;
    
    627
    +      FT_UInt    per_region_size;
    
    628 628
     
    
    629 629
     
    
    630 630
           if ( FT_STREAM_SEEK( offset + dataOffsetArray[i] ) )
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]