[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/saga music.cpp,1.26,1.27 music.h,1.10,1.11 saga.cpp,1.54,1.55
- Next message: [Scummvm-cvs-logs] CVS: scummvm/doc 05_01.tex,1.14,1.15 05_02.tex,1.5,1.6 05_03.tex,1.3,1.4 07.tex,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/saga music.cpp,1.26,1.27 music.h,1.10,1.11 saga.cpp,1.54,1.55
- Next message: [Scummvm-cvs-logs] CVS: scummvm/doc 05_01.tex,1.14,1.15 05_02.tex,1.5,1.6 05_03.tex,1.3,1.4 07.tex,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list