Skip to content

Commit

Permalink
Merge pull request #24672 from Jojo-Schmitz/compiler-warnings
Browse files Browse the repository at this point in the history
Fix MSVC compiler warnings
  • Loading branch information
cbjeukendrup authored Oct 11, 2024
2 parents 0dcbc14 + 86885ce commit 0c45d97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/framework/audio/internal/worker/mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Mixer::Mixer(const modularity::ContextPtr& iocCtx)
{
ONLY_AUDIO_WORKER_THREAD;

m_taskScheduler = std::make_unique<TaskScheduler>(configuration()->desiredAudioThreadNumber());
m_taskScheduler = std::make_unique<TaskScheduler>(static_cast<thread_pool_size_t>(configuration()->desiredAudioThreadNumber()));

if (!m_taskScheduler->setThreadsPriority(ThreadPriority::High)) {
LOGE() << "Unable to change audio threads priority";
Expand Down
4 changes: 2 additions & 2 deletions src/importexport/mei/internal/meiconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3386,7 +3386,7 @@ void Convert::layerIdentToMEI(const engraving::EngravingItem* item, libmei::Elem
if (item->hasVoiceAssignmentProperties()
&& (item->getProperty(engraving::Pid::VOICE_ASSIGNMENT).value<engraving::VoiceAssignment>()
== engraving::VoiceAssignment::CURRENT_VOICE_ONLY)) {
layerAtt->SetLayer(item->voice() + 1);
layerAtt->SetLayer(static_cast<int>(item->voice()) + 1);
}
}

Expand All @@ -3399,7 +3399,7 @@ void Convert::staffIdentToMEI(const engraving::EngravingItem* item, libmei::Elem
}

libmei::xsdPositiveInteger_List staffList;
staffList.push_back(item->staff()->idx() + 1);
staffList.push_back(static_cast<int>(item->staff()->idx()) + 1);
// TODO: add staff number if centered between staves
staffAtt->SetStaff(staffList);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2244,8 +2244,8 @@ void MusicXmlParserPass2::part()
matchingNote->setTieBack(unendedTie);
} else {
// try other voices in the stave
const Part* part = startChord->part();
for (track_idx_t track = part->startTrack(); track < part->endTrack() + VOICES; track++) {
const Part* p = startChord->part();
for (track_idx_t track = p->startTrack(); track < p->endTrack() + VOICES; track++) {
nextEl = nextSeg ? nextSeg->element(track) : nullptr;
nextChord = nextEl && nextEl->isChord() ? toChord(nextEl) : nullptr;
if (nextChord && nextChord->vStaffIdx() != startChord->vStaffIdx()) {
Expand Down

0 comments on commit 0c45d97

Please sign in to comment.