mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-26 21:04:24 +08:00
reformatting: print_value: 255 -> 0xFF
This commit is contained in:
parent
de4dc19e72
commit
a9f752e034
4
cJSON.c
4
cJSON.c
@ -909,7 +909,7 @@ static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p)
|
||||
}
|
||||
if (p)
|
||||
{
|
||||
switch ((item->type) & 255)
|
||||
switch ((item->type) & 0xFF)
|
||||
{
|
||||
case cJSON_NULL:
|
||||
out = ensure(p, 5);
|
||||
@ -948,7 +948,7 @@ static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p)
|
||||
}
|
||||
else
|
||||
{
|
||||
switch ((item->type) & 255)
|
||||
switch ((item->type) & 0xFF)
|
||||
{
|
||||
case cJSON_NULL:
|
||||
out = cJSON_strdup("null");
|
||||
|
Loading…
x
Reference in New Issue
Block a user