From 87b79168152d8d217bd09c61c8987faba8e6e3e7 Mon Sep 17 00:00:00 2001 From: Rick Smith Date: Tue, 1 Dec 2015 17:06:35 -0700 Subject: [PATCH] Fix compiler warning on Mac OSX --- core/src/zxing/pdf417/detector/LinesSampler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/zxing/pdf417/detector/LinesSampler.cpp b/core/src/zxing/pdf417/detector/LinesSampler.cpp index 0bf1954..121d7d2 100644 --- a/core/src/zxing/pdf417/detector/LinesSampler.cpp +++ b/core/src/zxing/pdf417/detector/LinesSampler.cpp @@ -704,7 +704,7 @@ Point LinesSampler::intersection(Line a, Line b) { float p = a.start.x * a.end.y - a.start.y * a.end.x; float q = b.start.x * b.end.y - b.start.y * b.end.x; float denom = dxa * dyb - dya * dxb; - if(abs(denom) < 1e-12) // Lines don't intersect (replaces "denom == 0") + if(std::abs(denom) < 1e-12) // Lines don't intersect (replaces "denom == 0") return Point(std::numeric_limits::infinity(), std::numeric_limits::infinity());