1
0
mirror of https://github.com/DaveGamble/cJSON synced 2024-12-22 06:40:04 +00:00

Fix indentation (should use spaces)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-12-26 09:44:51 +01:00 committed by Alan Wang
parent acc76239be
commit 8a334b0140

View File

@ -570,10 +570,10 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out
{
length = sprintf((char*)number_buffer, "null");
}
else if(d == (double)item->valueint)
{
length = sprintf((char*)number_buffer, "%d", item->valueint);
}
else if(d == (double)item->valueint)
{
length = sprintf((char*)number_buffer, "%d", item->valueint);
}
else
{
/* Try 15 decimal places of precision to avoid nonsignificant nonzero digits */