Skip to content

Commit

Permalink
Fix #26: Use long double literal for 1e60
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Nov 5, 2016
1 parent 050829f commit 3ea491c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static char *print_number(const cJSON *item, printbuffer *p)
{
sprintf(str, "null");
}
else if ((fabs(floor(d) - d) <= DBL_EPSILON) && (fabs(d) < 1.0e60))
else if ((fabs(floor(d) - d) <= DBL_EPSILON) && (fabs(d) < 1.0e60L))
{
sprintf(str, "%.0f", d);
}
Expand Down

0 comments on commit 3ea491c

Please sign in to comment.