From bd84dc1c17bf66a161012672818c082a5579f471 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 21 Mar 2022 21:48:36 -0500 Subject: [PATCH] GUI: make clang happy --- src/gui/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 7a1464254..4af736eeb 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1745,7 +1745,7 @@ bool FurnaceGUI::loop() { } } if (macroDragActive || macroLoopDragActive || waveDragActive || sampleDragActive) { - int distance=fabs(motionXrel); + int distance=fabs((double)motionXrel); if (distance<1) distance=1; float start=motionX-motionXrel; float end=motionX;