Fix non-conforming signbit test
Fixes: lp:1742803 * https://bugs.launchpad.net/kicad/+bug/1742803
This commit is contained in:
parent
79a9f401a3
commit
98c8a5ac0c
|
@ -378,8 +378,8 @@ bool SCH_LINE::IsSameQuadrant( SCH_LINE* aLine, const wxPoint& aPosition )
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return (std::signbit( first.x ) == std::signbit( second.x ) &&
|
return ( sign( first.x ) == sign( second.x ) &&
|
||||||
std::signbit( first.y ) == std::signbit( second.y ) );
|
sign( first.y ) == sign( second.y ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue