mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fix Windows compile error
This commit is contained in:
parent
e5c4c10e20
commit
c6a66643e9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user