[Scummvm-cvs-logs] SF.net SVN: scummvm: [26726] scummvm/trunk/engines/parallaction/sound.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue May 1 19:17:01 CEST 2007


Revision: 26726
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26726&view=rev
Author:   fingolfin
Date:     2007-05-01 10:17:00 -0700 (Tue, 01 May 2007)

Log Message:
-----------
Fix warning (unsigned ints are never negative)

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/sound.cpp

Modified: scummvm/trunk/engines/parallaction/sound.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/sound.cpp	2007-05-01 16:40:17 UTC (rev 26725)
+++ scummvm/trunk/engines/parallaction/sound.cpp	2007-05-01 17:17:00 UTC (rev 26726)
@@ -308,7 +308,7 @@
 }
 
 void AmigaSoundMan::playSfx(const char *filename, uint channel, bool looping, int volume, int rate) {
-	if (channel < 0 || channel >= NUM_AMIGA_CHANNELS) {
+	if (channel >= NUM_AMIGA_CHANNELS) {
 		warning("unknown sfx channel");
 		return;
 	}
@@ -344,7 +344,7 @@
 }
 
 void AmigaSoundMan::stopSfx(uint channel) {
-	if (channel < 0 || channel >= NUM_AMIGA_CHANNELS) {
+	if (channel >= NUM_AMIGA_CHANNELS) {
 		warning("unknown sfx channel");
 		return;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list