This commit is contained in:
Tomasz Duda 2024-08-13 17:16:50 +02:00
parent cb49627d39
commit da71668e73

View file

@ -79,7 +79,7 @@ class PartitionLightOutput : public light::AddressableLight {
int32_t seg_off = index - seg.get_dst_offset();
// offset within the src
int32_t src_off;
if (seg.is_reversed()) { // NOLINT(bugprone-branch-clone)
if (seg.is_reversed()) {
src_off = seg.get_src_offset() + seg.get_size() - seg_off - 1;
} else {
src_off = seg.get_src_offset() + seg_off;