Procházet zdrojové kódy

Fix compiler warning "array subscript has type char" when using arm-none-eabi-gcc

Ian Mobley před 8 roky
rodič
revize
d4836effc9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      cJSON.c

+ 1 - 1
cJSON.c

@@ -50,7 +50,7 @@ static int cJSON_strcasecmp(const char *s1, const char *s2)
     {
         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)
         {