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

v2: fix more ast positions

This commit is contained in:
Alexander Medvednikov
2020-02-19 11:31:33 +01:00
parent bc11419ff9
commit 082acfad49
2 changed files with 7 additions and 4 deletions

View File

@@ -71,6 +71,7 @@ fn (m mut map) set(key string, value voidptr) {
mut child_index := 0
mut parent := &mapnode(0)
for {
if node.size == max_size {
if isnil(parent) {
parent = new_node()