1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

strconv: fix fxx_to_str_l_parse/fxx_to_str_l_parse_no_dot returning s without cloning

This commit is contained in:
Delyan Angelov
2021-06-19 07:48:46 +03:00
parent acf9d168cb
commit aea23e8a40
3 changed files with 4 additions and 6 deletions

View File

@@ -186,7 +186,7 @@ fn test_signed_cast() {
}
// test g format
{
unsafe {
mut u := strconv.Float64u{
u: strconv.double_plus_zero
}
@@ -202,7 +202,7 @@ fn test_signed_cast() {
assert '${u.f:g}' == '-inf'
assert '${u.f:G}' == '-INF'
}
{
unsafe {
mut u := strconv.Float32u{
u: strconv.single_plus_zero
}