--- rsync/Matcher.cc.orig 2006-08-31 22:15:32.000000000 -0700 +++ rsync/Matcher.cc 2006-08-31 22:16:43.000000000 -0700 @@ -289,7 +289,7 @@ off_t j; /* by doing this in pieces we avoid too many seeks */ for (j = 0; j < (off_t)(len-CHUNK_SIZE); j += CHUNK_SIZE) { - int n1 = min((long unsigned int)CHUNK_SIZE,(len-CHUNK_SIZE)-j); + int n1 = min((long int)CHUNK_SIZE,(len-CHUNK_SIZE)-j); matched(s, buf, j + n1, -2); } matched(s, buf, len, -1);