mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
Fix compilation with older GCC versions
This commit is contained in:
parent
992d4cd51e
commit
af8aafc30f
@ -1090,13 +1090,15 @@ void segmenter_<LoggerPolicy, SegmentingPolicy>::segment_and_add_data(
|
|||||||
|
|
||||||
if constexpr (is_multi_block_mode()) {
|
if constexpr (is_multi_block_mode()) {
|
||||||
for (auto const& block : blocks_) {
|
for (auto const& block : blocks_) {
|
||||||
block.for_each_offset_filter(
|
block.for_each_offset_filter(hasher(), [&, this](auto off) {
|
||||||
hasher(), [&](auto off) { add_match(matches, &block, off); });
|
this->add_match(matches, &block, off);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
auto& block = blocks_.front();
|
auto& block = blocks_.front();
|
||||||
block.for_each_offset(
|
block.for_each_offset(hasher(), [&, this](auto off) {
|
||||||
hasher(), [&](auto off) { add_match(matches, &block, off); });
|
this->add_match(matches, &block, off);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!matches.empty()) [[unlikely]] {
|
if (!matches.empty()) [[unlikely]] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user