File: gcc-6.patch

package info (click to toggle)
murasaki 1.68.6-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,768 kB
  • sloc: cpp: 16,010; perl: 8,365; makefile: 187; sh: 31
file content (27 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (2)
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>
Last-Update: 2014-06-30
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;
       }