fix Windows compile error

This commit is contained in:
Chris Brunner 2013-08-29 16:37:16 +00:00
parent e5c4c10e20
commit c6a66643e9

View File

@ -298,7 +298,7 @@ WavAudioCursor::
void WavAudioCursor::
seek(double t) {
t = max(t, 0.0);
streampos pos = _data_start + min((size_t) (t * _byte_rate), _data_size);
streampos pos = _data_start + (streampos) min((size_t) (t * _byte_rate), _data_size);
if (_can_seek_fast) {
_stream->seekg(pos);