diff --git a/src/runtime/c/pgf/namespace.h b/src/runtime/c/pgf/namespace.h index d7a07d5d4..3f05134d5 100644 --- a/src/runtime/c/pgf/namespace.h +++ b/src/runtime/c/pgf/namespace.h @@ -615,8 +615,8 @@ ref namespace_lookup_index(Namespace map, PgfText *name, size_t *pIndex) if (cmp < 0) { map = map->left; } else if (cmp > 0) { - map = map->right; *pIndex += Node>::size(map->left)+1; + map = map->right; } else { *pIndex += Node>::size(map->left); return map->value;