[Scummvm-cvs-logs] CVS: scummvm/backends/midi/mt32 partial.cpp,1.1,1.2 synth.cpp,1.1,1.2

Max Horn fingolfin at users.sourceforge.net
Thu Oct 21 16:10:09 CEST 2004


Update of /cvsroot/scummvm/scummvm/backends/midi/mt32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29137/mt32

Modified Files:
	partial.cpp synth.cpp 
Log Message:
Fix sign warnings

Index: partial.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/mt32/partial.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- partial.cpp	21 Oct 2004 22:37:30 -0000	1.1
+++ partial.cpp	21 Oct 2004 23:03:09 -0000	1.2
@@ -237,7 +237,7 @@
 					// to how it looks on the MT-32.  What it really does it takes the
 					// square wave and multiplies it by a full cosine
 					// TODO: This area here crashes DosBox due to read overflow                     
-					int offsetpos = (toff<<2)+minorplace;
+					uint offsetpos = (toff<<2)+minorplace;
 					//int a = 0;
 					if(toff < sawtable[noteval][partCache->pulsewidth]) {
 						while(offsetpos>waveformsize[2][noteval]) {

Index: synth.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/mt32/synth.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- synth.cpp	21 Oct 2004 22:37:30 -0000	1.1
+++ synth.cpp	21 Oct 2004 23:03:09 -0000	1.2
@@ -2988,7 +2988,7 @@
 
 		for (int i = 0; i < 4; ++i) {
 			waveforms[i][f] = (Bit16s *)malloc(waveformsize[i][f]);
-			for (int j = 0; j < waveformsize[i][f]/2; ++j)
+			for (uint j = 0; j < waveformsize[i][f]/2; ++j)
 				waveforms[i][f][j] = fp.readSint16LE();
 		}
 #endif





More information about the Scummvm-git-logs mailing list