freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [psaux] Fix location and type order in


From: Ben Wagner (@bungeman)
Subject: [Git][freetype/freetype][master] [psaux] Fix location and type order in initializer
Date: Wed, 08 May 2024 21:27:03 +0000

Ben Wagner pushed to branch master at FreeType / FreeType

Commits:

  • a4642422
    by Ben Wagner at 2024-05-08T11:36:18-04:00
    [psaux] Fix location and type order in initializer
    
    `T1_FIELD_ZERO` is used to zero initialize a `T1_FieldRec`.
    `T1_FIELD_ZERO` is currently initilizing `T1_FieldRec::location` with a
    `T1_FieldType` and `T1_FieldRec::type` with a `T1_FieldLocation`. This
    was detected with `-Wenum-conversion`.
    
    * include/freetype/internal/psaux.h (T1_FIELD_ZERO): correct order of
    initalizers
    

1 changed file:

Changes:

  • include/freetype/internal/psaux.h
    ... ... @@ -363,7 +363,7 @@ FT_BEGIN_HEADER
    363 363
     #define T1_FIELD_ZERO                                         \
    
    364 364
               {                                                   \
    
    365 365
                 0,                                                \
    
    366
    -            NULL, T1_FIELD_TYPE_NONE, T1_FIELD_LOCATION_NONE, \
    
    366
    +            NULL, T1_FIELD_LOCATION_NONE, T1_FIELD_TYPE_NONE, \
    
    367 367
                 NULL, 0, 0, 0, 0, 0                               \
    
    368 368
               }
    
    369 369
     
    


  • reply via email to

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