[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] src/sfnt/ttcolr.c: fix build in C90 mode
From: |
Ozkan Sezer |
Subject: |
[PATCH] src/sfnt/ttcolr.c: fix build in C90 mode |
Date: |
Mon, 8 Jan 2024 22:03:41 +0300 |
See attached patch - also inlined below (hopefully not mangled.)
Regards.
--
O.S.
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c
index 0601d26..b326c35 100644
--- a/src/sfnt/ttcolr.c
+++ b/src/sfnt/ttcolr.c
@@ -1280,6 +1280,7 @@
while ( min < max )
{
FT_UInt mid = min + ( max - min ) / 2;
+ FT_UShort gid;
/*
* `base_glyph_begin` is the beginning of `BaseGlyphV1List`;
@@ -1296,7 +1297,7 @@
if ( p > end_colr - 2 - 4 )
return 0;
- FT_UShort gid = FT_NEXT_USHORT( p );
+ gid = FT_NEXT_USHORT( p );
if ( gid < glyph_id )
0001-src-sfnt-ttcolr.c-fix-build-in-C90-mode.patch
Description: Text Data
- [PATCH] src/sfnt/ttcolr.c: fix build in C90 mode,
Ozkan Sezer <=