File: gcc-6.patch

package info (click to toggle)
libgtextutils 0.7-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 388 kB
  • sloc: cpp: 946; ansic: 418; makefile: 84
file content (16 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Gert Wollny <gw.fossdev@gmail.com>
Date: Wed, 29 Jun 2014 16:47:43 +0200
Subject: Fix compilation with g++-6
Bug-Debian: https://bugs.debian.org/811646
Forwarded: https://github.com/agordon/libgtextutils/issues/14

--- 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 input_stream.good() ;
 }