summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-15 12:47:28 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-15 12:47:28 (GMT)
commit911613edf0ec23d8dbcb1a8c860898a647258534 (patch)
tree948ebdb45f71cb2441b0a4be38bfb486035400f6 /Source/CPack
parent1dde4ab36cef08e6bdbf3400f93e9813b0e064d8 (diff)
downloadCMake-911613edf0ec23d8dbcb1a8c860898a647258534.zip
CMake-911613edf0ec23d8dbcb1a8c860898a647258534.tar.gz
CMake-911613edf0ec23d8dbcb1a8c860898a647258534.tar.bz2
COMP: fix warning about comparison signed - unsigned
Alex
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 60e476b..c8b6d4e 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/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)