[med-svn] [transtermhp] 02/03: read_seq: return nullptr instead of false
Fabian Klötzl
kloetzl-guest at moszumanska.debian.org
Tue Feb 23 20:03:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
kloetzl-guest pushed a commit to branch patch-queue/master
in repository transtermhp.
commit 2bc711e2406a75715b5b09f2738f04b88692cb23
Author: Fabian Klötzl <fabian at kloetzl.info>
Date: Tue Feb 23 18:45:48 2016 +0000
read_seq: return nullptr instead of false
GCC6 spills with an error on this and thus FTBFS.
---
seq.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/seq.cc b/seq.cc
index 7782d0d..be8bdb6 100644
--- a/seq.cc
+++ b/seq.cc
@@ -83,14 +83,14 @@ read_seq(istream & in)
// find first line starting with >
while((i = in.get()) && i != EOF && i != '>') { }
- if(i == EOF) return false;
+ if(i == EOF) return nullptr;
// read the name
while((i = in.get()) && i != EOF && !isspace(i))
{
seq->name += (char)i;
}
- if(i == EOF) return false;
+ if(i == EOF) return nullptr;
if(seq->name.length() == 0)
{
@@ -109,7 +109,7 @@ read_seq(istream & in)
}
}
- if(i == EOF) return false;
+ if(i == EOF) return nullptr;
// allocate initial buffer of 1Mb for seq
size_t bufsize = INIT_SEQ_ALLOC;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/transtermhp.git
More information about the debian-med-commit
mailing list