mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Fix compiler warning "array subscript has type char" when using arm-none-eabi-gcc
This commit is contained in:
parent
85aa59be38
commit
d4836effc9
2
cJSON.c
2
cJSON.c
@ -50,7 +50,7 @@ static int cJSON_strcasecmp(const char *s1, const char *s2)
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
for(; tolower(*s1) == tolower(*s2); ++s1, ++s2)
|
for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2)
|
||||||
{
|
{
|
||||||
if (*s1 == 0)
|
if (*s1 == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user