From f6850bdec58605d099ba8dd39ef165e59fd72bd0 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 7 Oct 2023 17:23:04 -0400 Subject: [PATCH] Warning Fix (#48) Float Double narrow --- src/sst/jucegui/components/KnobPainter.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sst/jucegui/components/KnobPainter.hxx b/src/sst/jucegui/components/KnobPainter.hxx index 81470f5..f3e93f7 100644 --- a/src/sst/jucegui/components/KnobPainter.hxx +++ b/src/sst/jucegui/components/KnobPainter.hxx @@ -117,7 +117,7 @@ void knobPainter(juce::Graphics &g, T* that, S *source) auto cp = region.getCentre().toFloat(); auto rad = std::min(region.getWidth()/2, region.getHeight()/2); - return {cp.getX() + rad * sin(pt), cp.getY() - rad * cos(pt)}; + return {(float)(cp.getX() + rad * sin(pt)), (float)(cp.getY() - rad * cos(pt))}; }; auto modPath = [that, knobarea](int r, float v, float m, int direction) -> juce::Path {