aboutsummaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-06-22 20:39:31 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-06-26 12:05:07 +0000
commit62ea7a81654b671744732eb162a92ecb08957b36 (patch)
treea354f685074e46c25f159de72a2bd97cc6d8eac2 /src/acpi
parentfe242cea1e8af2cb88ddd935887f2c9096d76efc (diff)
acpi/acpigen.c: Be explicit about char sign
The sign of 'char' is not standardized and with GCC is architecture dependent. This fixes warnings when compiling this file on arm64. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I53b99835b2ffec5d752fc531fd59e4715f61aced Reviewed-on: https://review.coreboot.org/c/coreboot/+/76006 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpigen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index fb92b89f03..e61954fd7f 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -187,7 +187,7 @@ void acpigen_write_name_unicode(const char *name, const char *string)
acpigen_write_len_f();
acpigen_write_integer(len);
for (size_t i = 0; i < len; i++) {
- const char c = string[i];
+ const signed char c = string[i];
/* Simple ASCII to UTF-16 conversion, replace non ASCII characters */
acpigen_emit_word(c >= 0 ? c : '?');
}