Imported Upstream version 17.10.1
[platform/upstream/libzypp.git] / zypp / TriBool.h
index aa5e7ff..f2c5cfe 100644 (file)
@@ -68,7 +68,7 @@ namespace boost
 
       /** \relates TriBool whether 2 tribool have the same state (this is NOT ==) */
       inline bool sameTriboolState( tribool lhs, tribool rhs )
-      { return( ( indeterminate(lhs) && indeterminate(rhs) ) || ( lhs == rhs ) ); }
+      { return( ( indeterminate(lhs) && indeterminate(rhs) ) || ( bool )( lhs == rhs ) ); }
     }
 }
 #endif // ZYPP_TRIBOOL_H