freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/sfnt/ttcolr.c (find_base_glyph_v1


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] * src/sfnt/ttcolr.c (find_base_glyph_v1_record): Fix build in C90 mode.
Date: Mon, 08 Jan 2024 19:27:30 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • 7bac4d14
    by Ozkan Sezer at 2024-01-08T20:27:03+01:00
    * src/sfnt/ttcolr.c (find_base_glyph_v1_record): Fix build in C90 mode.
    

1 changed file:

Changes:

  • src/sfnt/ttcolr.c
    ... ... @@ -1279,7 +1279,8 @@
    1279 1279
     
    
    1280 1280
         while ( min < max )
    
    1281 1281
         {
    
    1282
    -      FT_UInt  mid = min + ( max - min ) / 2;
    
    1282
    +      FT_UInt    mid = min + ( max - min ) / 2;
    
    1283
    +      FT_UShort  gid;
    
    1283 1284
     
    
    1284 1285
           /*
    
    1285 1286
            * `base_glyph_begin` is the beginning of `BaseGlyphV1List`;
    
    ... ... @@ -1296,8 +1297,7 @@
    1296 1297
           if ( p > end_colr - 2 - 4 )
    
    1297 1298
             return 0;
    
    1298 1299
     
    
    1299
    -      FT_UShort  gid = FT_NEXT_USHORT( p );
    
    1300
    -
    
    1300
    +      gid = FT_NEXT_USHORT( p );
    
    1301 1301
     
    
    1302 1302
           if ( gid < glyph_id )
    
    1303 1303
             min = mid + 1;
    


  • reply via email to

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