From c559f85ccb3040af4117daa139a7a2c9c1f12b8a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 1 Nov 2014 16:02:34 +0100 Subject: [PATCH] Fix wrong test: boolean variable is never negative This has been spotted by clang++. --- src/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.cpp b/src/Server.cpp index 1de758a5f4..b7fa35ee13 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -878,7 +878,7 @@ void LyXComm::endPipe(int & fd, string const & filename, bool write) << '\n' << strerror(errno) << endl; } - if (FileName(filename).removeFile() < 0) { + if (!FileName(filename).removeFile()) { lyxerr << "LyXComm: Could not remove pipe " << filename << '\n' << strerror(errno) << endl; }