mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix failing tests-sanitize-address-clang
step for vlib/toml/tests/spaced_keys_test.v
This commit is contained in:
parent
b3287f8159
commit
cde0cbd5ad
@ -928,8 +928,7 @@ pub fn (mut p Parser) double_array_of_tables(mut table map[string]ast.Value) ? {
|
|||||||
nm = &(table[first.str()] as map[string]ast.Value)
|
nm = &(table[first.str()] as map[string]ast.Value)
|
||||||
} else {
|
} else {
|
||||||
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'implicit allocation of map for `$first` in dotted key `$dotted_key`.')
|
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'implicit allocation of map for `$first` in dotted key `$dotted_key`.')
|
||||||
new := map[string]ast.Value{}
|
nm = &map[string]ast.Value{}
|
||||||
nm = &new
|
|
||||||
// We register this implicit allocation as *explicit* to be able to catch
|
// We register this implicit allocation as *explicit* to be able to catch
|
||||||
// special cases like:
|
// special cases like:
|
||||||
// https://github.com/BurntSushi/toml-test/blob/576db852/tests/invalid/table/array-implicit.toml
|
// https://github.com/BurntSushi/toml-test/blob/576db852/tests/invalid/table/array-implicit.toml
|
||||||
|
Loading…
Reference in New Issue
Block a user