mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
bluedroid: fix -Wchar-subscripts warning
'unsigner char' cast recommended, https://stackoverflow.com/a/60696378
This commit is contained in:
@@ -612,7 +612,7 @@ static UINT8 bta_ag_parse_chld(tBTA_AG_SCB *p_scb, char *p_s)
|
|||||||
INT16 idx = -1;
|
INT16 idx = -1;
|
||||||
UNUSED(p_scb);
|
UNUSED(p_scb);
|
||||||
|
|
||||||
if (!isdigit(p_s[0])) {
|
if (!isdigit((unsigned char)p_s[0])) {
|
||||||
return BTA_AG_INVALID_CHLD;
|
return BTA_AG_INVALID_CHLD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user