Fix boolean conversion
This commit is contained in:
parent
1240807b9f
commit
7dd83dd2d1
@ -230,7 +230,7 @@ namespace canvas
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool ODGauge::updateFlag(Flags flag, bool enable)
|
bool ODGauge::updateFlag(Flags flag, bool enable)
|
||||||
{
|
{
|
||||||
if( (_flags & flag) == enable )
|
if( bool(_flags & flag) == enable )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
_flags ^= flag;
|
_flags ^= flag;
|
||||||
|
Loading…
Reference in New Issue
Block a user