Fix minor windows pedantic warnings.
This commit is contained in:
@@ -327,12 +327,13 @@ int RageFileObj::GetLine( RString &sOut )
|
||||
sOut = "";
|
||||
|
||||
if( m_bEOF )
|
||||
{
|
||||
return 0;
|
||||
|
||||
}
|
||||
EnableReadBuffering();
|
||||
|
||||
bool bGotData = false;
|
||||
while( 1 )
|
||||
for(;;)
|
||||
{
|
||||
bool bDone = false;
|
||||
|
||||
@@ -361,12 +362,15 @@ int RageFileObj::GetLine( RString &sOut )
|
||||
{
|
||||
char *RealEnd = p;
|
||||
if( bDone && p > m_pReadBuf && p[-1] == '\r' )
|
||||
{
|
||||
--RealEnd; /* not including \r */
|
||||
}
|
||||
sOut.append( m_pReadBuf, RealEnd );
|
||||
|
||||
if( bDone )
|
||||
{
|
||||
++p; /* skip \n */
|
||||
|
||||
}
|
||||
const int iUsed = p-m_pReadBuf;
|
||||
if( iUsed )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user