aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/soundux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/soundux.cpp b/source/soundux.cpp
index b8df25a..399b04b 100644
--- a/source/soundux.cpp
+++ b/source/soundux.cpp
@@ -842,7 +842,7 @@ void DecodeBlock (Channel *ch)
ch->loop = (filter & 2) != 0;
int16 interim[16];
- uint8 interim_byte;
+ uint8 interim_byte = 0;
compressed++;
signed short *raw = ch->block = ch->decoded;
@@ -974,7 +974,7 @@ void DecodeBlock (Channel *ch)
for (i = 0; i < 8; i++)
ch->decoded[i] = amplitude / 2;
for (i = 8; i < 16; i++)
- ch->decoded[i] = -amplitude / 2;
+ ch->decoded[i] = -(amplitude / 2);
}
}
else