COMP: fix warning about comparison signed - unsigned

Alex
This commit is contained in:
Alexander Neundorf 2007-08-15 08:47:28 -04:00
parent 1dde4ab36c
commit 911613edf0
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ static int copy_ar(CF *cfp, off_t size)
FILE* from = cfp->rFile;
FILE* to = cfp->wFile;
while (sz &&
(nr = fread(buf, 1, sz < sizeof(buf) ? sz : sizeof(buf), from )) > 0) {
(nr = fread(buf, 1, sz < off_t(sizeof(buf)) ? sz : sizeof(buf), from ))
> 0) {
sz -= nr;
for (int off = 0; off < nr; nr -= off, off += nw)
if ((nw = fwrite(buf + off, 1, nr, to)) < 0)