Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 1bd3884bc0544ffbb6545ed2391f0932bb8d7d91 Mon Sep 17 00:00:00 2001 |
| 2 | From: psykose <alice@ayaya.dev> |
| 3 | Date: Mon, 1 Aug 2022 07:45:25 +0000 |
| 4 | Subject: [PATCH] fix signedness of char in tests |
| 5 | |
| 6 | Upstream-Status: Backport |
| 7 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 8 | --- |
| 9 | src/test-repacker.cc | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/src/test-repacker.cc b/src/test-repacker.cc |
| 13 | index 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); |