diff --git a/src/importexport/musicxml/internal/musicxml/importmxmlpass2.cpp b/src/importexport/musicxml/internal/musicxml/importmxmlpass2.cpp index 276d00abc6128..9f594c4c81daa 100644 --- a/src/importexport/musicxml/internal/musicxml/importmxmlpass2.cpp +++ b/src/importexport/musicxml/internal/musicxml/importmxmlpass2.cpp @@ -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(chord->voice())); } } @@ -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(chord->voice())); } else if (stemDir == DirectionV::AUTO) { stemDir = ds->stemDirection(newPitch); }