]> git.mxchange.org Git - simgear.git/commitdiff
Fix boolean conversion
authorThomas Geymayer <tomgey@gmail.com>
Thu, 28 Feb 2013 21:23:15 +0000 (22:23 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 28 Feb 2013 21:23:30 +0000 (22:23 +0100)
simgear/canvas/ODGauge.cxx

index 7a252721195fc26d31c8c53ad178a6760d754ffa..45edf9a9fa2e39e79667b641899449a1e3024192 100644 (file)
@@ -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;