summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/harfbuzz/harfbuzz/0001-fix-signedness-of-char-in-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/harfbuzz/harfbuzz/0001-fix-signedness-of-char-in-tests.patch')
-rw-r--r--meta/recipes-graphics/harfbuzz/harfbuzz/0001-fix-signedness-of-char-in-tests.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz/0001-fix-signedness-of-char-in-tests.patch b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-fix-signedness-of-char-in-tests.patch
new file mode 100644
index 0000000000..029ca2bfff
--- /dev/null
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-fix-signedness-of-char-in-tests.patch
@@ -0,0 +1,27 @@
1From 1bd3884bc0544ffbb6545ed2391f0932bb8d7d91 Mon Sep 17 00:00:00 2001
2From: psykose <alice@ayaya.dev>
3Date: Mon, 1 Aug 2022 07:45:25 +0000
4Subject: [PATCH] fix signedness of char in tests
5
6Upstream-Status: Backport
7Signed-off-by: Alexander Kanavin <alex@linutronix.de>
8---
9 src/test-repacker.cc | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/src/test-repacker.cc b/src/test-repacker.cc
13index 053c0c6..1b7e1f0 100644
14--- a/src/test-repacker.cc
15+++ b/src/test-repacker.cc
16@@ -112,9 +112,9 @@ static void start_lookup (int8_t type,
17 hb_serialize_context_t* c)
18 {
19 char lookup[] = {
20- 0, type, // type
21+ 0, (char)type, // type
22 0, 0, // flag
23- 0, num_subtables, // num subtables
24+ 0, (char)num_subtables, // num subtables
25 };
26
27 start_object (lookup, 6, c);