Fix minor windows pedantic warnings.

This commit is contained in:
Jason Felds
2016-03-27 22:03:15 -04:00
parent 534909d30a
commit bec18a0d36
31 changed files with 173 additions and 67 deletions
+5 -1
View File
@@ -235,7 +235,7 @@ int RageSoundReader_SpeedChange::GetCursorAvail() const
int RageSoundReader_SpeedChange::Read( float *pBuf, int iFrames )
{
while( 1 )
for(;;)
{
if( m_iDataBufferAvailFrames == 0 && m_fTrailingSpeedRatio == m_fSpeedRatio && m_fSpeedRatio == 1.0f )
{
@@ -250,9 +250,13 @@ int RageSoundReader_SpeedChange::Read( float *pBuf, int iFrames )
{
int iRet = Step();
if( iRet < 0 )
{
return iRet;
}
if( !GetCursorAvail() )
{
return END_OF_FILE;
}
continue;
}