From b69efa20ad82c204d65e2d17c21e6d2a87b05060 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Sun, 30 Jan 2022 20:36:12 +0700 Subject: [PATCH] bluedroid: fix -Wchar-subscripts warning 'unsigner char' cast recommended, https://stackoverflow.com/a/60696378 --- components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c index 24ef3656b7..a7bc33cb23 100644 --- a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c +++ b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c @@ -612,7 +612,7 @@ static UINT8 bta_ag_parse_chld(tBTA_AG_SCB *p_scb, char *p_s) INT16 idx = -1; UNUSED(p_scb); - if (!isdigit(p_s[0])) { + if (!isdigit((unsigned char)p_s[0])) { return BTA_AG_INVALID_CHLD; }