From 77f4891c222583c8deffc34732ccf325bac9e11b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 26 Feb 2012 21:28:48 -0600 Subject: Fix a number of tdelibs build warnings --- libkmid/alsaout.cc | 2 +- libkmid/track.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libkmid') 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(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++; }; -- cgit v1.2.1