Skip to content

Commit

Permalink
More warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Jan 29, 2024
1 parent cf176d4 commit 69b710a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/gin_plugin/components/gin_msegcomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ void MSEGComponent::createPath (juce::Rectangle<float> area)
curve.clear();
path.clear();

for (int x = area.getX(); x <= area.getRight(); x++)
for (int x = int (area.getX()); x <= area.getRight(); x++)
{
auto v = mseg.process (1);

if (x == area.getX())
if (x == int (area.getX()))
path.startNewSubPath ({float (area.getX()), valueToY (v)});
else
path.lineTo ({float (x), valueToY (v)});

curve[x - area.getX()] = valueToY (v);
curve[x - int (area.getX())] = valueToY (v);
}
}

Expand Down Expand Up @@ -279,7 +279,7 @@ void MSEGComponent::mouseDown (const juce::MouseEvent& e)
lastY = e.y;
}

void MSEGComponent::mouseMove (const juce::MouseEvent& e)
void MSEGComponent::mouseMove (const juce::MouseEvent&)
{
if (! editable)
return;
Expand Down

0 comments on commit 69b710a

Please sign in to comment.