1
0
Fork 0

Fix signed/unsigned warning

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1270
This commit is contained in:
Sjoerd van der Berg 2003-09-25 19:30:55 +00:00
parent 4f4eefda17
commit 6b72dfd2f0

View file

@ -230,7 +230,7 @@ static void MIXER_CallBack(void * userdata, Uint8 *stream, int len) {
/* Copy data from out buffer to the stream */
Bitu size=MIXER_BUFSIZE+mixer.out.write-mixer.out.read;
if (size>=MIXER_BUFSIZE) size-=MIXER_BUFSIZE;
if (size*MIXER_SSIZE<len) {
if (size*MIXER_SSIZE<(Bitu)len) {
// LOG(0,"Buffer underrun");
/* When there's a buffer underrun, keep the data so there will be more next time */
return;