aports/community/py3-cffsubr/gcc14.patch
2024-09-09 08:23:19 +00:00

29 lines
1.1 KiB
Diff

From 21d8b26f6caa930c29c187c9f8b201d67cf4de0d Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyich@gmail.com>
Date: Thu, 11 Jan 2024 04:04:00 +0000
Subject: [PATCH] Fix build failures discovered by an upcoming `gcc-14` release
(#1730)
---
c/shared/source/t1write/t1write.c | 3 ++-
c/shared/source/tx_shared/tx_shared.c | 4 ++--
c/shared/source/uforead/uforead.c | 6 +++---
tests/tx_test.py | 2 +-
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/c/shared/source/t1write/t1write.c b/c/shared/source/t1write/t1write.c
index 6405b6537..266a11953 100644
--- a/c/shared/source/t1write/t1write.c
+++ b/c/shared/source/t1write/t1write.c
+++ b/external/afdko/c/public/lib/source/t1write/t1write.c
@@ -345,7 +345,8 @@ static int saveCstr(t1wCtx h, abfGlyphInfo *info,
if (info != NULL && info->flags & ABF_GLYPH_CID &&
!(h->arg.flags & T1W_TYPE_HOST)) {
/* CID-keyed incremental download; write fd index */
- if (writeTmp(h, 1, &info->iFD))
+ unsigned char c = info->iFD;
+ if (writeTmp(h, 1, &c))
return 1;
cstr->length++;
}