Skip to content

Commit

Permalink
change buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Sep 18, 2024
1 parent 5e1c7ed commit b51cc1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vlib/strconv/format_mem.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ pub fn format_fl(f f64, p BF_param) string {
tmp.free()
}

mut buf := []u8{len: p.len0 + 1} // write temp float buffer
mut out := []u8{len: p.len0 + 1} // out buffer
mut buf := []u8{len: p.len0 + 32} // write temp float buffer
mut out := []u8{len: p.len0 + 32} // out buffer
mut buf_i := 0 // index temporary string
mut out_i := 0 // index output string

Expand Down Expand Up @@ -397,8 +397,8 @@ pub fn format_es(f f64, p BF_param) string {
tmp.free()
}

mut buf := []u8{len: p.len0 + 1} // write temp float buffer
mut out := []u8{len: p.len0 + 1} // out buffer
mut buf := []u8{len: p.len0 + 32} // write temp float buffer
mut out := []u8{len: p.len0 + 32} // out buffer
mut buf_i := 0 // index temporary string
mut out_i := 0 // index output string

Expand Down

0 comments on commit b51cc1a

Please sign in to comment.