Skip to content

Commit

Permalink
Fix json number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pommicket committed Oct 30, 2024
1 parent 99c154c commit 388709d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static void write_arr_elem_arr_start(JSONWriter *o) {
}

static void write_number(JSONWriter *o, double number) {
str_builder_appendf(o->builder, "%g", number);
str_builder_appendf(o->builder, "%.17g", number);
}

static void write_key_number(JSONWriter *o, const char *key, double number) {
Expand Down

0 comments on commit 388709d

Please sign in to comment.