Fix compilation in Windows

This commit is contained in:
nsubiron 2017-05-08 18:03:25 +02:00
parent 33590041a6
commit b64aea71bf
1 changed files with 2 additions and 2 deletions

View File

@ -40,14 +40,14 @@ public:
/// Whether this pixel lies in-road. /// Whether this pixel lies in-road.
bool IsRoad() const bool IsRoad() const
{ {
return (Value & (1 << IsRoadRow)); return (Value & (1 << IsRoadRow)) != 0;
} }
/// Whether this pixel has a direction defined (e.g. road intersections are /// Whether this pixel has a direction defined (e.g. road intersections are
/// not off-road but neither have defined direction). /// not off-road but neither have defined direction).
bool HasDirection() const bool HasDirection() const
{ {
return (Value & (1 << HasDirectionRow)); return (Value & (1 << HasDirectionRow)) != 0;
} }
/// Get the azimuth angle [-PI, PI] of the road direction (in spherical /// Get the azimuth angle [-PI, PI] of the road direction (in spherical