Fix non-conforming signbit test

Fixes: lp:1742803
* https://bugs.launchpad.net/kicad/+bug/1742803
This commit is contained in:
Seth Hillbrand 2018-01-11 14:44:12 -08:00 committed by jean-pierre charras
parent 79a9f401a3
commit 98c8a5ac0c
1 changed files with 2 additions and 2 deletions

View File

@ -378,8 +378,8 @@ bool SCH_LINE::IsSameQuadrant( SCH_LINE* aLine, const wxPoint& aPosition )
else
return false;
return (std::signbit( first.x ) == std::signbit( second.x ) &&
std::signbit( first.y ) == std::signbit( second.y ) );
return ( sign( first.x ) == sign( second.x ) &&
sign( first.y ) == sign( second.y ) );
}