From 4e0c8ccb035c2c57cc86b1cd1af717631df6863b Mon Sep 17 00:00:00 2001 From: mborn-adi <79849981+mborn-adi@users.noreply.github.com> Date: Mon, 1 Mar 2021 14:22:25 +0100 Subject: [PATCH] Added missing explicit type casts Added missing explicit type casts to high precision type. This way, no implicit conversion between "coordinate_type" and "high_precision_type" is needed. --- .../boost/polygon/detail/polygon_arbitrary_formation.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/polygon/detail/polygon_arbitrary_formation.hpp b/include/boost/polygon/detail/polygon_arbitrary_formation.hpp index 5495897e..509182c1 100644 --- a/include/boost/polygon/detail/polygon_arbitrary_formation.hpp +++ b/include/boost/polygon/detail/polygon_arbitrary_formation.hpp @@ -211,8 +211,8 @@ namespace boost { namespace polygon{ if(pt.y() == other_pt.y()) return (high_precision)pt.y(); evalAtXforYxIn = (high_precision)xIn; - evalAtXforYx1 = pt.get(HORIZONTAL); - evalAtXforYy1 = pt.get(VERTICAL); + evalAtXforYx1 = (high_precision)pt.get(HORIZONTAL); + evalAtXforYy1 = (high_precision)pt.get(VERTICAL); evalAtXforYdx1 = evalAtXforYxIn - evalAtXforYx1; evalAtXforY0 = high_precision(0); if(evalAtXforYdx1 == evalAtXforY0) return evalAtXforYret = evalAtXforYy1; @@ -239,8 +239,8 @@ namespace boost { namespace polygon{ return evalAtXforYret; } evalAtXforYxIn = (high_precision)xIn; - evalAtXforYx1 = pt.get(HORIZONTAL); - evalAtXforYy1 = pt.get(VERTICAL); + evalAtXforYx1 = (high_precision)pt.get(HORIZONTAL); + evalAtXforYy1 = (high_precision)pt.get(VERTICAL); evalAtXforYdx1 = evalAtXforYxIn - evalAtXforYx1; evalAtXforY0 = high_precision(0); if(evalAtXforYdx1 == evalAtXforY0) return evalAtXforYret = evalAtXforYy1;