Fixed two compilation issues.
[alexxy/gromacs.git] / src / gromacs / selection / parsetree.h
index a313c2ecde34b1b75061397a5330da7edf36e554..6961a7503cba29cc75a098f39581b933fc38b158 100644 (file)
@@ -213,7 +213,7 @@ class SelectionParserValue
         }
 
         //! Returns true if the value comes from expression evaluation.
-        bool hasExpressionValue() const { return expr; }
+        bool hasExpressionValue() const { return static_cast<bool>(expr); }
 
         //! Returns the string value (\a type must be ::STR_VALUE).
         const std::string &stringValue() const