AUDIO: Fix compilation on AmigaOS 4

This commit is contained in:
Colin Snover 2017-09-10 00:15:15 -05:00
parent 6df5e4c372
commit dbf2f0c266

View File

@ -352,9 +352,9 @@ do { \
int DK3_ADPCMStream::readBuffer(int16 *buffer, const int numSamples) {
assert((numSamples % 4) == 0);
const uint startOffset = _stream->pos() % _blockAlign;
uint audioBytesLeft = _endpos - _stream->pos();
uint blockBytesLeft;
const uint32 startOffset = _stream->pos() % _blockAlign;
uint32 audioBytesLeft = _endpos - _stream->pos();
uint32 blockBytesLeft;
if (startOffset != 0) {
blockBytesLeft = _blockAlign - startOffset;
} else {