Skip to content

Commit

Permalink
From @Bronek: fix error in gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Jan 15, 2025
1 parent de6f9db commit 0ec72ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/xrpld/app/paths/detail/DirectStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,22 +336,22 @@ DirectIPaymentStep::quality(ReadView const& sb, QualityDirection qDir) const
if (!sle)
return QUALITY_ONE;

auto const& field = [this, qDir]() -> SF_UINT32 const& {
auto const& field = *[this, qDir]() {
if (qDir == QualityDirection::in)
{
// compute dst quality in
if (this->dst_ < this->src_)
return sfLowQualityIn;
return &sfLowQualityIn;
else
return sfHighQualityIn;
return &sfHighQualityIn;
}
else
{
// compute src quality out
if (this->src_ < this->dst_)
return sfLowQualityOut;
return &sfLowQualityOut;
else
return sfHighQualityOut;
return &sfHighQualityOut;
}
}();

Expand Down

0 comments on commit 0ec72ec

Please sign in to comment.