Browse Source

COMP: fix warning about comparison signed - unsigned


			
			
				pull/1/head
			
			
		
Alexander Neundorf 18 years ago
parent
commit
911613edf0
  1. 3
      Source/CPack/cmCPackDebGenerator.cxx

3
Source/CPack/cmCPackDebGenerator.cxx

@ -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)

Loading…
Cancel
Save