mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-05 03:35:27 -07:00
bugfix
This commit is contained in:
1 parent
ddb01b41be
commit
2e30c7f6cb
1 file changed
+4
-2
@@ -359,8 +359,10 @@ Namespace<V> namespace_insert(Namespace<V> map, ref<V> value)
|
|||||||
namespace_release(right);
|
namespace_release(right);
|
||||||
return node;
|
return node;
|
||||||
} else {
|
} else {
|
||||||
map->left->ref_count++;
|
if (map->left != 0)
|
||||||
map->right->ref_count++;
|
map->left->ref_count++;
|
||||||
|
if (map->right != 0)
|
||||||
|
map->right->ref_count++;
|
||||||
return Node<V>::new_node(value,map->left,map->right);
|
return Node<V>::new_node(value,map->left,map->right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user