mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
(trunk libT) fix signed/unsigned comparison warnings on amd64
This commit is contained in:
parent
a34d742e36
commit
08e936704c
1 changed files with 2 additions and 2 deletions
|
@ -1362,7 +1362,7 @@ tr_moveFile( const char * oldpath, const char * newpath, tr_bool * renamed )
|
|||
char * buf;
|
||||
struct stat st;
|
||||
off_t bytesLeft;
|
||||
size_t buflen;
|
||||
off_t buflen;
|
||||
|
||||
/* make sure the old file exists */
|
||||
if( stat( oldpath, &st ) ) {
|
||||
|
@ -1402,7 +1402,7 @@ tr_moveFile( const char * oldpath, const char * newpath, tr_bool * renamed )
|
|||
while( bytesLeft > 0 )
|
||||
{
|
||||
ssize_t bytesWritten;
|
||||
const size_t bytesThisPass = MIN( bytesLeft, buflen );
|
||||
const off_t bytesThisPass = MIN( bytesLeft, buflen );
|
||||
const int numRead = read( in, buf, bytesThisPass );
|
||||
if( numRead < 0 )
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue