Commit dafdd533 authored by Adam P. Goucher's avatar Adam P. Goucher
Browse files

Fix issue #3 (the segfault)

parent 49c82877
Pipeline #180273167 passed with stages
in 10 minutes and 30 seconds
......@@ -129,9 +129,12 @@ namespace apg {
}
}
dimers.clear();
for (uint64_t i = sdimers.size() - 1; i > 0; i--) {
for (uint64_t j = 0; j < sdimers[i].size(); j++) {
dimers.push_back(sdimers[i][j]);
if (sdimers.size()) {
for (uint64_t i = sdimers.size() - 1; i > 0; i--) {
for (uint64_t j = 0; j < sdimers[i].size(); j++) {
dimers.push_back(sdimers[i][j]);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment