aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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