Skip to content

Commit

Permalink
Fix explicit GzInputStream::operator bool() const
Browse files Browse the repository at this point in the history
A bug was introduced by PR 11308.

We need to return "!fail()".

Reported-by: Stefano Argiro' <stefano.argiro@cern.ch>
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
  • Loading branch information
David Abdurachmanov authored and David Abdurachmanov committed May 10, 2016
1 parent 0545abb commit 98c8bd9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ struct GzInputStream
{ gzclose(gzf) ; }
explicit operator bool() const
{
return ((eof == true) ? false : iss.fail());
return ((eof == true) ? false : !iss.fail());
}
} ;

Expand Down

0 comments on commit 98c8bd9

Please sign in to comment.