From 98c8a5ac0c933846cc76d0d03f7ac4d38050e64f Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 11 Jan 2018 14:44:12 -0800 Subject: [PATCH] Fix non-conforming signbit test Fixes: lp:1742803 * https://bugs.launchpad.net/kicad/+bug/1742803 --- eeschema/sch_line.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp index 7e7d06c6d3..9437dc1511 100644 --- a/eeschema/sch_line.cpp +++ b/eeschema/sch_line.cpp @@ -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 ) ); }