summaryrefslogtreecommitdiffstats
path: root/libkmid
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
commit77f4891c222583c8deffc34732ccf325bac9e11b (patch)
tree5123890a5c34e9297b26bdfa258cbe0ab9ad25c6 /libkmid
parent81dc14e8f035d33ab1de2c01314582ed2c17ad1c (diff)
downloadtdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.tar.gz
tdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.zip
Fix a number of tdelibs build warnings
Diffstat (limited to 'libkmid')
-rw-r--r--libkmid/alsaout.cc2
-rw-r--r--libkmid/track.cc2
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++; };