(trunk libT) fix minor "comparison between signed and unsigned" warning in tr_moveFile()

This commit is contained in:
Charles Kerr 2010-07-13 13:23:51 +00:00
parent 1ab45eb639
commit 38c25a5890
1 changed files with 1 additions and 1 deletions

View File

@ -1473,7 +1473,7 @@ tr_moveFile( const char * oldpath, const char * newpath, tr_bool * renamed )
while( bytesLeft > 0 )
{
ssize_t bytesWritten;
const off_t bytesThisPass = MIN( bytesLeft, buflen );
const off_t bytesThisPass = MIN( bytesLeft, (off_t)buflen );
const int numRead = read( in, buf, bytesThisPass );
if( numRead < 0 )
break;