Fixed a few compiler warnings.

This commit is contained in:
Ryan C. Gordon
2017-01-05 20:11:19 -05:00
parent 4aa9e36983
commit 3761b5f60b
2 changed files with 4 additions and 4 deletions

View File

@@ -729,7 +729,7 @@ ResampleAudioStream(SDL_AudioStream *stream, const float *inbuf, const int inbuf
stream->resampler_state[i] = last_sample[i];
}
return (dst - outbuf) * sizeof (float);
return (int) ((dst - outbuf) * sizeof (float));
}
static Uint8 *
@@ -844,7 +844,7 @@ SDL_AudioStreamGet(SDL_AudioStream *stream, Uint32 len, void *buf, const Uint32
return SDL_SetError("Can't request partial sample frames");
}
return SDL_ReadFromDataQueue(stream->queue, buf, buflen);
return (int) SDL_ReadFromDataQueue(stream->queue, buf, buflen);
}
/* number of converted/resampled bytes available */