aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/mt32
diff options
context:
space:
mode:
authorMax Horn2004-10-21 23:03:09 +0000
committerMax Horn2004-10-21 23:03:09 +0000
commit5c87bcafa6094239270e65cafe6a9c8a203bdb7c (patch)
tree32488a6e5f5f44149924cffd3b5f215b4218ed24 /backends/midi/mt32
parent7e339bfbd23c0ab4cf0e010a1ff5243fe10bc92e (diff)
downloadscummvm-rg350-5c87bcafa6094239270e65cafe6a9c8a203bdb7c.tar.gz
scummvm-rg350-5c87bcafa6094239270e65cafe6a9c8a203bdb7c.tar.bz2
scummvm-rg350-5c87bcafa6094239270e65cafe6a9c8a203bdb7c.zip
Fix sign warnings
svn-id: r15638
Diffstat (limited to 'backends/midi/mt32')
-rw-r--r--backends/midi/mt32/partial.cpp2
-rw-r--r--backends/midi/mt32/synth.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/mt32/partial.cpp b/backends/midi/mt32/partial.cpp
index 363752ea7e..fc0cb3997c 100644
--- a/backends/midi/mt32/partial.cpp
+++ b/backends/midi/mt32/partial.cpp
@@ -237,7 +237,7 @@ INLINE void CPartialMT32::generateSamples(Bit16s * partialBuf, long length) {
// 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]) {
diff --git a/backends/midi/mt32/synth.cpp b/backends/midi/mt32/synth.cpp
index 9a35c7e5cb..b9164c77c8 100644
--- a/backends/midi/mt32/synth.cpp
+++ b/backends/midi/mt32/synth.cpp
@@ -2988,7 +2988,7 @@ bool CSynthMT32::InitTables(const char *baseDir ) {
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