diff options
author | Bob Moore <robert.moore@intel.com> | 2016-09-07 09:06:10 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-09-10 03:43:00 +0300 |
commit | eacce4b6ce073b69830f5d816282af5317a2e98c (patch) | |
tree | ab49ecfdba7a1fed84f6f8f3d17ef4d29af6f1f1 /drivers | |
parent | 5ebd2eaaefc0d4fe37ab72e716e1b8065ed4206c (diff) | |
download | linux-eacce4b6ce073b69830f5d816282af5317a2e98c.tar.xz |
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 <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/acpica/uthex.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |