From 928dafeb6da788100aee60e1ea29a3370bcbe6d2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 30 May 2022 22:14:22 +0300 Subject: [PATCH] strconv: make f64_to_str_lnd1 public (fix building vlang/coreutils printf) --- vlib/strconv/format_mem.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/strconv/format_mem.c.v b/vlib/strconv/format_mem.c.v index edb215e8f..24bc09fa8 100644 --- a/vlib/strconv/format_mem.c.v +++ b/vlib/strconv/format_mem.c.v @@ -137,7 +137,7 @@ pub fn format_dec_sb(d u64, p BF_param, mut res strings.Builder) { // f64_to_str_lnd1 formats a f64 to a `string` with `dec_digit` digits after the dot. [direct_array_access; manualfree] -fn f64_to_str_lnd1(f f64, dec_digit int) string { +pub fn f64_to_str_lnd1(f f64, dec_digit int) string { unsafe { // we add the rounding value s := f64_to_str(f + dec_round[dec_digit], 18) -- 2.30.2