From 674483845305bc2fdd862cdd7e188220f0e4d1d7 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 29 May 2020 13:33:46 +0900 Subject: [PATCH] sw_engine: Fix build error (no match type) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/lib/sw_engine/tvgSwStroke.cpp:282:72: error: no match for ‘operator<’ (operand types are ‘long int’ and ‘const SwPoint’) if (border->ptsCnt > 0 && abs(diff.x) < EPSILON && abs(diff.y) < EPSILON) return; Change-Id: I426f8980ba718e3dc908dc32a62fb897b5b5fbbf --- src/lib/sw_engine/tvgSwStroke.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sw_engine/tvgSwStroke.cpp b/src/lib/sw_engine/tvgSwStroke.cpp index 2f810a1c..acaf2c61 100644 --- a/src/lib/sw_engine/tvgSwStroke.cpp +++ b/src/lib/sw_engine/tvgSwStroke.cpp @@ -269,7 +269,7 @@ static void _growBorder(SwStrokeBorder* border, uint32_t newPts) static void _borderLineTo(SwStrokeBorder* border, SwPoint& to, bool movable) { - constexpr SwPoint EPSILON = 2; + constexpr SwCoord EPSILON = 2; assert(border && border->start >= 0);