Fix compile

This commit is contained in:
cam900 2022-08-27 18:26:56 +09:00
parent 570036ad6f
commit 80c9b0c3f4

View file

@ -1559,7 +1559,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version, bool p
sample->offSegaPCM=memPos; sample->offSegaPCM=memPos;
unsigned int readPos=0; unsigned int readPos=0;
for (unsigned int j=0; j<alignedSize; j++) { for (unsigned int j=0; j<alignedSize; j++) {
if (readPos>=sample->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT)) { if (readPos>=(unsigned int)sample->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT)) {
if (sample->isLoopable()) { if (sample->isLoopable()) {
readPos=sample->getLoopStartPosition(DIV_SAMPLE_DEPTH_8BIT); readPos=sample->getLoopStartPosition(DIV_SAMPLE_DEPTH_8BIT);
pcmMem[memPos++]=((unsigned char)sample->data8[readPos]+0x80); pcmMem[memPos++]=((unsigned char)sample->data8[readPos]+0x80);