Package: murasaki / 1.68.6-6

gcc-6.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Gert Wollny <gw.fossdev@gmail.com>
Date: Thu, 30 Jun 2014 11:14:43 +0200
Subject: Fix compilation with g++-6
Bug-Debian: https://bugs.debian.org/811815

--- a/src/sequence.cc
+++ b/src/sequence.cc
@@ -2045,7 +2045,9 @@
       histo.resize(size+1);
     histo[size]++;
   }
-  if(of!=cerr)
+  
+  // compare the pointers instead of the objects 
+  if(&of != &cerr)
     for(unsigned i=1;i<histo.size();i++){
       of << i << "\t" << histo[i]<<endl;
     }
@@ -3209,7 +3211,7 @@
 	os << last->first << ":" << last->second;
       }
 
-      if(opt.bitscore && bitos!=cerr){
+      if(opt.bitscore && & bitos != &cerr){
 	pair<SeqPos,SeqPos> scores(s->bitscore());
 	bitos << scores.first << "\t" << scores.second << endl;
       }