aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wagner <bungeman@chromium.org>2024-05-08 11:33:47 -0400
committerBen Wagner <bungeman@chromium.org>2024-05-08 11:36:18 -0400
commita46424228f0998a72c715f32e18dca8a7a764c1f (patch)
treea0f0f12a134da6279eb045a545ed5b1887570ee1
parent1264b84c08a31d11303fe3781444f6f026ea60b8 (diff)
downloadfreetype-a46424228f0998a72c715f32e18dca8a7a764c1f.tar.gz
[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
-rw-r--r--include/freetype/internal/psaux.h2
1 files changed, 1 insertions, 1 deletions
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 \
}