Skip to content

Commit

Permalink
fix JSON_REAL_PRECISION
Browse files Browse the repository at this point in the history
  • Loading branch information
ihakh authored Sep 17, 2024
1 parent 61fc3d0 commit 851c116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int jsonp_dtostr(char *buffer, size_t size, double value, int precision) {
*/
char digits[25];
char *digits_end;
int mode = precision == 0 ? 0 : 2;
int mode = precision == 0 ? 0 : 5;
int decpt, sign, exp_len, exp = 0, use_exp = 0;
int digits_len, vdigits_start, vdigits_end;
char *p;
Expand Down

0 comments on commit 851c116

Please sign in to comment.