void-packages/srcpkgs/harfbuzz/patches/fix-char-signed.patch

30 lines
836 B
Diff

Patch-Source: https://github.com/harfbuzz/harfbuzz/pull/3771
From 81fe35159e4fdc5ca2c9436cc9ad2750bda64203 Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Mon, 1 Aug 2022 07:45:25 +0000
Subject: [PATCH] [repacker] fix signedness of char in tests
---
src/test-repacker.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test-repacker.cc b/src/test-repacker.cc
index 053c0c603..1b7e1f08b 100644
--- a/src/test-repacker.cc
+++ b/src/test-repacker.cc
@@ -112,9 +112,9 @@ static void start_lookup (int8_t type,
hb_serialize_context_t* c)
{
char lookup[] = {
- 0, type, // type
+ 0, (char)type, // type
0, 0, // flag
- 0, num_subtables, // num subtables
+ 0, (char)num_subtables, // num subtables
};
start_object (lookup, 6, c);
--
2.37.1