diff options
Diffstat (limited to 'libkmid')
-rw-r--r-- | libkmid/alsaout.cc | 2 | ||||
-rw-r--r-- | libkmid/track.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libkmid/alsaout.cc b/libkmid/alsaout.cc index 73effc2e3..4c7f48f4e 100644 --- a/libkmid/alsaout.cc +++ b/libkmid/alsaout.cc @@ -469,7 +469,7 @@ void AlsaOut::seqbuf_clean(void) void AlsaOut::wait(double ticks) { // SEQ_WAIT_TIME(((int)(ticks/convertrate))); - time=(long int)ticks; + time=static_cast<long int>(ticks); #ifdef MIDIOUTDEBUG printfdebug("Wait >\t ticks: %g\n",ticks); diff --git a/libkmid/track.cc b/libkmid/track.cc index f936906e7..ccaaf69d2 100644 --- a/libkmid/track.cc +++ b/libkmid/track.cc @@ -334,7 +334,7 @@ void MidiTrack::readEvent(MidiEvent *ev) case (ME_END_OF_TRACK) : i=0; j=0; - while ((note[i][j]==FALSE)&&(i<16)) + while ((i<16)&&(note[i][j]==FALSE)) { j++; if (j==128) { j=0; i++; }; |