From 8facfdb83b78dc8b50945f1361ae585d847f023a Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Mon, 16 Jan 2023 15:02:35 -0600 Subject: [PATCH] checks.c: Ensure argument is an integer --- checks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks.c b/checks.c index 9f31d26..c072c90 100644 --- a/checks.c +++ b/checks.c @@ -1180,7 +1180,7 @@ static void check_unit_address_format(struct check *c, struct dt_info *dti, /* skip over 0x for next test */ unitname += 2; } - if (unitname[0] == '0' && isxdigit(unitname[1])) + if (unitname[0] == '0' && isxdigit((int)unitname[1])) FAIL(c, dti, node, "unit name should not have leading 0s"); } WARNING(unit_address_format, check_unit_address_format, NULL, -- 2.30.2