Skip to content

Commit 928dafe

Browse files
committed
strconv: make f64_to_str_lnd1 public (fix building vlang/coreutils printf)
1 parent fc64f09 commit 928dafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/strconv/format_mem.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub fn format_dec_sb(d u64, p BF_param, mut res strings.Builder) {
137137

138138
// f64_to_str_lnd1 formats a f64 to a `string` with `dec_digit` digits after the dot.
139139
[direct_array_access; manualfree]
140-
fn f64_to_str_lnd1(f f64, dec_digit int) string {
140+
pub fn f64_to_str_lnd1(f f64, dec_digit int) string {
141141
unsafe {
142142
// we add the rounding value
143143
s := f64_to_str(f + dec_round[dec_digit], 18)

0 commit comments

Comments
 (0)