summaryrefslogtreecommitdiff
path: root/common/charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/charger.c')
-rw-r--r--common/charger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/charger.c b/common/charger.c
index 4b75d2e5ef..f9fd1c4640 100644
--- a/common/charger.c
+++ b/common/charger.c
@@ -196,7 +196,7 @@ static int command_charger(int argc, char **argv)
return EC_SUCCESS;
}
- idx_provided = isdigit(argv[1][0]);
+ idx_provided = isdigit((unsigned char)argv[1][0]);
if (idx_provided)
chgnum = atoi(argv[1]);
else
@@ -673,4 +673,4 @@ enum ec_error_list charger_enable_linear_charge(int chgnum, bool enable)
enable);
return EC_ERROR_UNIMPLEMENTED;
-} \ No newline at end of file
+}