[med-svn] [libgtextutils] 01/03: Add explicit cast to bool

Fabian Klötzl kloetzl-guest at moszumanska.debian.org
Sat Feb 27 13:25:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

kloetzl-guest pushed a commit to branch debian/unstable
in repository libgtextutils.

commit e9b891ca27a9ce298ae700cc26f631f1ca69c134
Author: Fabian Klötzl <fabian at kloetzl.info>
Date:   Sat Feb 27 12:09:19 2016 +0000

    Add explicit cast to bool
    
    Fixes build issue with GCC 6 (closes #811646).
---
 src/gtextutils/text_line_reader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gtextutils/text_line_reader.cpp b/src/gtextutils/text_line_reader.cpp
index fede933..28299e5 100644
--- a/src/gtextutils/text_line_reader.cpp
+++ b/src/gtextutils/text_line_reader.cpp
@@ -44,6 +44,6 @@ bool TextLineReader::next_line()
 	if (input_stream.eof())
 		return false;
 
-	return input_stream ;
+	return static_cast<bool>(input_stream) ;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libgtextutils.git



More information about the debian-med-commit mailing list