Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
user1095108 committed May 4, 2024
1 parent ab31e07 commit c1af9ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,13 @@ auto emplace(auto& n, auto& k, auto const& create_node)
{
if (sl = (*this)(n->l_); !sl) return {};

sr = detail::size(n->r_);
sr = size(n->r_);
}
else if (c > 0)
{
if (sr = (*this)(n->r_); !sr) return {};

sl = detail::size(n->l_);
sl = size(n->l_);
}
else [[unlikely]]
{
Expand All @@ -394,8 +394,7 @@ auto emplace(auto& n, auto& k, auto const& create_node)
}
};

S s{k, create_node}; s(n);
return s.q_;
S s{k, create_node}; s(n); return s.q_;
}

}
Expand Down

0 comments on commit c1af9ab

Please sign in to comment.