From 388709d6bd89c119d35e2cccbb43f9337e91b7d8 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 29 Oct 2024 16:11:34 -0400 Subject: Fix json number formatting --- lsp-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp-write.c') 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) { -- cgit v1.2.3