Fix warnings in MSVC 2010.

This commit is contained in:
rude
2011-07-24 18:32:11 +02:00
parent 71d4c4a565
commit e1d1ebb2f1
8 changed files with 42 additions and 19 deletions
+1 -1
View File
@@ -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;