From 38c25a5890be43ed4fc1f6886e786d3ff52cb2ec Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 13 Jul 2010 13:23:51 +0000 Subject: [PATCH] (trunk libT) fix minor "comparison between signed and unsigned" warning in tr_moveFile() --- libtransmission/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 5a54b3cfe..55493f762 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -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; -- 2.40.0