Skip to content

Commit

Permalink
Fixed some minor MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Sep 28, 2020
1 parent c07b571 commit dd253e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/opnmidi_midiplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ size_t OPNMIDIplay::chooseDevice(const std::string &name)
size_t n = m_midiDevices.size() * 16;
m_midiDevices.insert(std::make_pair(name, n));
m_midiChannels.resize(n + 16);
resetMIDIDefaults(n);
resetMIDIDefaults(static_cast<int>(n));
return n;
}

Expand Down
2 changes: 1 addition & 1 deletion src/opnmidi_opn2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ void OPN2::touchNote(size_t c,
if(volume > minVolume)
{
double lv = std::log(static_cast<double>(volume));
volume = static_cast<uint_fast32_t>(lv * c1 - c2) * 2.0;
volume = static_cast<uint_fast32_t>(lv * c1 - c2) * 2;
}
else
volume = 0;
Expand Down

0 comments on commit dd253e5

Please sign in to comment.