freebsd-ports/science/massxpert/files/patch-lib_cleaveSpec.cpp
John Marino 94c5d47dac science/massxpert: Fix two logical errors (found by gcc5)
There were two boolean logic issues found by gcc5 when compiling
massxpert.  One was comparing boolean output to a negative integer
(is always false) and the other applied the "not" operator in the wrong
place.  Fix provided per request by maintainer.

PR:	197823
2015-03-22 00:06:34 +00:00

11 lines
273 B
C++

--- lib/cleaveSpec.cpp.orig 2012-12-25 21:02:43 UTC
+++ lib/cleaveSpec.cpp
@@ -427,7 +427,7 @@ namespace massXpert
return false;
- if (parse() == -1)
+ if (parse() == false)
return false;
// If there are rules, we have to check them all.