diff options
author | pommicket <pommicket@gmail.com> | 2024-10-29 16:11:34 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-10-29 21:04:13 -0400 |
commit | 388709d6bd89c119d35e2cccbb43f9337e91b7d8 (patch) | |
tree | 01f0e39100384a8c17e452617b447095c4a823de | |
parent | 99c154c9a80e8b738466472154b261e9dd9338c1 (diff) |
Fix json number formatting
-rw-r--r-- | lsp-write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp-write.c b/lsp-write.c index 7d9665c..70a9f39 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -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) { |