freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master a46424228: [psaux] Fix location and type order in ini


From: Werner Lemberg
Subject: [freetype2] master a46424228: [psaux] Fix location and type order in initializer
Date: Wed, 8 May 2024 17:27:12 -0400 (EDT)

branch: master
commit a46424228f0998a72c715f32e18dca8a7a764c1f
Author: Ben Wagner <bungeman@chromium.org>
Commit: Ben Wagner <bungeman@chromium.org>

    [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
---
 include/freetype/internal/psaux.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/freetype/internal/psaux.h 
b/include/freetype/internal/psaux.h
index fffa103ca..745d2cb56 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -363,7 +363,7 @@ FT_BEGIN_HEADER
 #define T1_FIELD_ZERO                                         \
           {                                                   \
             0,                                                \
-            NULL, T1_FIELD_TYPE_NONE, T1_FIELD_LOCATION_NONE, \
+            NULL, T1_FIELD_LOCATION_NONE, T1_FIELD_TYPE_NONE, \
             NULL, 0, 0, 0, 0, 0                               \
           }
 



reply via email to

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