mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fix warnings in MSVC 2010.
This commit is contained in:
@@ -164,7 +164,7 @@ namespace lullaby
|
||||
|
||||
bool Mpg123Decoder::seek(float s)
|
||||
{
|
||||
off_t offset = s * sampleRate;
|
||||
off_t offset = static_cast<off_t>(s * static_cast<float>(sampleRate));
|
||||
|
||||
if(offset < 0)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user