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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user