Skip to content

Compiling on macos there is an error #701

Description

@ckemere

On macos, following the suggested XCode-based compilation, I get this error:

/.../plugin-GUI/Source/Processors/FileReader/ScrubberInterface.cpp:224:25 Chained comparison 'X < Y < Z' does not behave the same as a mathematical expression

This refers to this line of code:

float timelinePos = (float) (fileReader->getPlayheadPosition() - startSampleNumber) / (stopSampleNumber - startSampleNumber) * getWidth();
    if (0 < timelinePos < sliderPosition + sliderWidth)
    {
        g.setOpacity (1.0f);
        g.fillRoundedRectangle (timelinePos, 0, 1, this->getHeight(), 0.2);
    }

I assume it's supposed to be:

    if ((0 < timelinePos) && (timelinePos < sliderPosition + sliderWidth))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions