Skip to content

Commit ef40e24

Browse files
committed
[fix][Fec test] missing & to avoid copying object
1 parent 0b8b3cc commit ef40e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fec_utest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class FecTestCommon : public ::testing::Test {
145145
props[i] = quadiron::Properties();
146146
}
147147
}
148-
const std::vector<T*> mem = data_frags.get_mem();
148+
const std::vector<T*>& mem = data_frags.get_mem();
149149
for (unsigned i = 0; i < n_data; i++) {
150150
char* buf = reinterpret_cast<char*>(mem[i]);
151151
for (size_t j = 0; j < fec.buf_size; ++j) {

0 commit comments

Comments
 (0)