Skip to content

Commit fa526e0

Browse files
author
Daniel Thuerck
committed
Closes #40.
1 parent 6a9eac8 commit fa526e0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mapmap/source/cost_instances/pairwise_table.impl.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ set_costs(
9898

9999
/* expand table into aligned storage */
100100
for(_iv_st<COSTTYPE, SIMDWIDTH> li_a = 0; li_a < len_a; ++li_a)
101-
std::copy(&packed_table[li_a * len_b],
102-
&packed_table[(li_a + 1) * len_b],
103-
&m_packed_table[li_a * padded_b]);
101+
{
102+
std::copy(
103+
packed_table.begin() + (li_a * len_b),
104+
packed_table.begin() + ((li_a + 1) * len_b),
105+
m_packed_table + (li_a * padded_b));
106+
}
104107
}
105108

106109
/* ************************************************************************** */

0 commit comments

Comments
 (0)