Skip to content

Commit

Permalink
Fix Clang warning and potential bug
Browse files Browse the repository at this point in the history
"Operator '?:' has lower precedence than '+'; '+' will be evaluated first"

Introduced by 6205752
  • Loading branch information
cbjeukendrup committed Feb 23, 2025
1 parent 9033dc2 commit 4e9fba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notation/internal/notationnoteinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ void NotationNoteInput::moveInputNotes(bool up, PitchMode mode)

switch (mode) {
case PitchMode::CHROMATIC:
newVal.pitch = val.pitch + up ? 1 : -1;
newVal.pitch = val.pitch + (up ? 1 : -1);
break;
case PitchMode::DIATONIC: {
const int oldLine = mu::engraving::noteValToLine(val, is.staff(), is.tick());
Expand Down

0 comments on commit 4e9fba3

Please sign in to comment.