mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 22:12:51 -06:00
bugfix
This commit is contained in:
@@ -615,8 +615,8 @@ ref<V> namespace_lookup_index(Namespace<V> map, PgfText *name, size_t *pIndex)
|
|||||||
if (cmp < 0) {
|
if (cmp < 0) {
|
||||||
map = map->left;
|
map = map->left;
|
||||||
} else if (cmp > 0) {
|
} else if (cmp > 0) {
|
||||||
map = map->right;
|
|
||||||
*pIndex += Node<ref<V>>::size(map->left)+1;
|
*pIndex += Node<ref<V>>::size(map->left)+1;
|
||||||
|
map = map->right;
|
||||||
} else {
|
} else {
|
||||||
*pIndex += Node<ref<V>>::size(map->left);
|
*pIndex += Node<ref<V>>::size(map->left);
|
||||||
return map->value;
|
return map->value;
|
||||||
|
|||||||
Reference in New Issue
Block a user