Loading debian/patches/fix_src_packed_field.patchdeleted 100644 → 0 +0 −21 Original line number Diff line number Diff line Description: patch header file due to compilation error Within pbuilder, compiler complains of "cannot bind packed field", so create a clone of the variables as auto. Author: Shayan Doust <hello@shayandoust.me> Last-Update: 2019-10-11 --- Index: megahit/src/sequence/kmer.h =================================================================== --- megahit.orig/src/sequence/kmer.h 2019-10-21 11:34:23.623134886 +0100 +++ megahit/src/sequence/kmer.h 2019-10-21 11:34:51.959024968 +0100 @@ -113,7 +113,9 @@ } for (unsigned i = 0; i + i < used_words; ++i) { - std::swap(data_[i], data_[used_words - 1 - i]); + Kmer<1, long unsigned int>::word_type a = data_[i]; + Kmer<1, long unsigned int>::word_type b = data_[used_words - 1 - i]; + std::swap(a, b); } if ((k % kCharsPerWord) != 0) { Loading
debian/patches/fix_src_packed_field.patchdeleted 100644 → 0 +0 −21 Original line number Diff line number Diff line Description: patch header file due to compilation error Within pbuilder, compiler complains of "cannot bind packed field", so create a clone of the variables as auto. Author: Shayan Doust <hello@shayandoust.me> Last-Update: 2019-10-11 --- Index: megahit/src/sequence/kmer.h =================================================================== --- megahit.orig/src/sequence/kmer.h 2019-10-21 11:34:23.623134886 +0100 +++ megahit/src/sequence/kmer.h 2019-10-21 11:34:51.959024968 +0100 @@ -113,7 +113,9 @@ } for (unsigned i = 0; i + i < used_words; ++i) { - std::swap(data_[i], data_[used_words - 1 - i]); + Kmer<1, long unsigned int>::word_type a = data_[i]; + Kmer<1, long unsigned int>::word_type b = data_[used_words - 1 - i]; + std::swap(a, b); } if ((k % kCharsPerWord) != 0) {