mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
bugfix
This commit is contained in:
@@ -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