Fix incorrect dyn cast (#1467)

This commit is contained in:
trapexit 2025-05-19 22:46:55 -05:00 • committed by GitHub
parent 86b50d2d4e
commit 4b751c2d37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ Branches::Impl::Impl(const u64 &default_minfreespace_)
Branches::Impl&
Branches::Impl::operator=(Branches::Impl &rval_)
{
using type = std::vector<std::shared_ptr<Branch>>;
using type = std::vector<Branch>;
auto this_base = dynamic_cast<type*>(this);
auto rval_base = dynamic_cast<type*>(&rval_);
@ -54,7 +54,7 @@ Branches::Impl::operator=(Branches::Impl &rval_)
Branches::Impl&
Branches::Impl::operator=(Branches::Impl &&rval_)
{
using type = std::vector<std::shared_ptr<Branch>>;
using type = std::vector<Branch>;
auto this_base = dynamic_cast<type*>(this);
auto rval_base = dynamic_cast<type*>(&rval_);