From e39a1fc809d21d64ef8b96fcba6b56f554ccb550 Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Mon, 10 Feb 2020 18:28:56 +1000 Subject: [PATCH] Resolve ambiguous abs() call Signed-off-by: Christoph Willing --- src/KeyFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KeyFrame.cpp b/src/KeyFrame.cpp index c54bc7d4..457ed9b7 100644 --- a/src/KeyFrame.cpp +++ b/src/KeyFrame.cpp @@ -71,7 +71,7 @@ namespace { } double const x = p0.X * B[0] + p1.X * B[1] + p2.X * B[2] + p3.X * B[3]; double const y = p0.Y * B[0] + p1.Y * B[1] + p2.Y * B[2] + p3.Y * B[3]; - if (abs(target - x) < allowed_error) { + if (fabs(target - x) < allowed_error) { return y; } if (x > target) {