Commit d772dedf authored by Richard Gobeille's avatar Richard Gobeille

audiolib: fix warning

parent e9d85352
......@@ -95,7 +95,7 @@ static playbackstatus MV_GetNextVOCBlock(VoiceNode *voice)
// terminator is not mandatory according to
// http://wiki.multimedia.cx/index.php?title=Creative_Voice
if (ptr - (uint8_t *)voice->rawdataptr >= voice->rawdatasiz)
if ((uint32_t)(ptr - (uint8_t *)voice->rawdataptr) >= voice->rawdatasiz)
blocktype = 0; // fake a terminator
else
blocktype = *ptr;
......@@ -149,7 +149,7 @@ end_of_data:
else
done = TRUE;
if (ptr - (uint8_t *)voice->rawdataptr >= voice->rawdatasiz)
if ((uint32_t)(ptr - (uint8_t *)voice->rawdataptr) >= voice->rawdatasiz)
goto end_of_data;
voicemode = 0;
......@@ -242,7 +242,7 @@ end_of_data:
// CAUTION:
// SNAKRM.VOC is corrupt! blocklength gets us beyond the
// end of the file.
if (ptr - (uint8_t *)voice->rawdataptr >= voice->rawdatasiz)
if ((uint32_t)(ptr - (uint8_t *)voice->rawdataptr) >= voice->rawdatasiz)
goto end_of_data;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment