From: Bob Moore Date: Wed, 7 Sep 2016 06:06:10 +0000 (+0800) Subject: ACPICA: Add a couple of casts to uthex.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eacce4b6ce073b69830f5d816282af5317a2e98c;p=linux-beck.git ACPICA: Add a couple of casts to uthex.c ACPICA commit 2ba5d3fdaa24d66d67694cbae6ec66971a7a67c1 Required in some environments. Link: https://github.com/acpica/acpica/commit/2ba5d3fd Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/uthex.c b/drivers/acpi/acpica/uthex.c index 3a4ca951d762..36d2fc789088 100644 --- a/drivers/acpi/acpica/uthex.c +++ b/drivers/acpi/acpica/uthex.c @@ -92,7 +92,8 @@ acpi_status acpi_ut_ascii_to_hex_byte(char *two_ascii_chars, u8 *return_byte) /* Both ASCII characters must be valid hex digits */ - if (!isxdigit(two_ascii_chars[0]) || !isxdigit(two_ascii_chars[1])) { + if (!isxdigit((int)two_ascii_chars[0]) || + !isxdigit((int)two_ascii_chars[1])) { return (AE_BAD_HEX_CONSTANT); }