Skip to content

Commit

Permalink
Fix MSVC compiler warnings
Browse files Browse the repository at this point in the history
reg.: 'argument': conversion from 'size_t' to 'int', possible loss of data (C4267)
  • Loading branch information
Jojo-Schmitz authored and igorkorsukov committed Jul 2, 2024
1 parent 4d6ee74 commit 6900c41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6330,7 +6330,7 @@ void MusicXMLParserPass2::xmlSetDrumsetPitch(Note* note, const Chord* chord, con

newPitch = instr.pitch;
ds->drum(newPitch) = ds->drum(newPitch) = DrumInstrument(
instr.name.toStdString().c_str(), headGroup, line, stemDir, chord->voice());
instr.name.toStdString().c_str(), headGroup, line, stemDir, static_cast<int>(chord->voice()));
}
}

Expand All @@ -6345,7 +6345,7 @@ void MusicXMLParserPass2::xmlSetDrumsetPitch(Note* note, const Chord* chord, con
}
}

ds->drum(newPitch) = DrumInstrument("drum", headGroup, line, stemDir, chord->voice());
ds->drum(newPitch) = DrumInstrument("drum", headGroup, line, stemDir, static_cast<int>(chord->voice()));
} else if (stemDir == DirectionV::AUTO) {
stemDir = ds->stemDirection(newPitch);
}
Expand Down

0 comments on commit 6900c41

Please sign in to comment.