Преглед изворни кода

reformatting: print_value: 255 -> 0xFF

Max Bruckner пре 8 година
родитељ
комит
a9f752e034
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      cJSON.c

+ 2 - 2
cJSON.c

@@ -909,7 +909,7 @@ static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p)
     }
     }
     if (p)
     if (p)
     {
     {
-        switch ((item->type) & 255)
+        switch ((item->type) & 0xFF)
         {
         {
             case cJSON_NULL:
             case cJSON_NULL:
                 out = ensure(p, 5);
                 out = ensure(p, 5);
@@ -948,7 +948,7 @@ static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p)
     }
     }
     else
     else
     {
     {
-        switch ((item->type) & 255)
+        switch ((item->type) & 0xFF)
         {
         {
             case cJSON_NULL:
             case cJSON_NULL:
                 out = cJSON_strdup("null");
                 out = cJSON_strdup("null");