From 7dd83dd2d11a1e0ffc0a8d3f21b4eb497ebc5985 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 28 Feb 2013 22:23:15 +0100 Subject: [PATCH] Fix boolean conversion --- simgear/canvas/ODGauge.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;