Commit 1c94341e authored by Shayan Doust's avatar Shayan Doust
Browse files

Remove old patch no longer needed in this upstream version

parent 42a063eb
Loading
Loading
Loading
Loading
+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) {