diff --git a/simgear/canvas/ODGauge.cxx b/simgear/canvas/ODGauge.cxx index 7a252721..45edf9a9 100644 --- a/simgear/canvas/ODGauge.cxx +++ b/simgear/canvas/ODGauge.cxx @@ -230,7 +230,7 @@ namespace canvas //---------------------------------------------------------------------------- bool ODGauge::updateFlag(Flags flag, bool enable) { - if( (_flags & flag) == enable ) + if( bool(_flags & flag) == enable ) return false; _flags ^= flag;