mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
parent
86496aa191
commit
c662431cfd
24 changed files with 84 additions and 48 deletions
|
@ -54,13 +54,13 @@ fn (mut btree BTree) add_children(tag Tag) int {
|
|||
btree.all_tags << tag
|
||||
if btree.all_tags.len > 1 {
|
||||
for btree.childrens.len <= btree.node_pointer {
|
||||
mut temp_array := btree.childrens
|
||||
mut temp_array := btree.childrens.clone()
|
||||
temp_array << []int{}
|
||||
btree.childrens = temp_array
|
||||
}
|
||||
btree.childrens[btree.node_pointer] << btree.all_tags.len - 1
|
||||
for btree.parents.len < btree.all_tags.len {
|
||||
mut temp_array := btree.parents
|
||||
mut temp_array := btree.parents.clone()
|
||||
temp_array << 0
|
||||
btree.parents = temp_array
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue