From e9dabf7084e6cde5493f4dcbbf42995a4fd7df37 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 15 May 2022 18:58:39 +0200 Subject: [PATCH] Fixed a compiler warning on NetBSD. --- es-app/src/views/SystemView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index eaf5e2b0a..4cdbaa043 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -235,7 +235,7 @@ void SystemView::onCursorChanged(const CursorState& state) if (mPrimaryType == PrimaryType::CAROUSEL) { // Find the shortest path to the target. - float dist {fabs(endPos - startPos)}; + float dist {fabsf(endPos - startPos)}; if (fabs(target + posMax - startPos - scrollVelocity) < dist) endPos = target + posMax; // Loop around the end (0 -> max).