summaryrefslogtreecommitdiffstats
path: root/Source/cmHexFileConverter.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-25 20:23:57 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-05-25 20:23:57 (GMT)
commitd6f779a9b0abf2a00119c9ab9ab73e360ba1bf7f (patch)
treedbb5ccb05749f4ed15e89a9839e05da12c4ee9e8 /Source/cmHexFileConverter.cxx
parent775f012fae7b789301285420d60707c0246977f9 (diff)
downloadCMake-d6f779a9b0abf2a00119c9ab9ab73e360ba1bf7f.zip
CMake-d6f779a9b0abf2a00119c9ab9ab73e360ba1bf7f.tar.gz
CMake-d6f779a9b0abf2a00119c9ab9ab73e360ba1bf7f.tar.bz2
COMP: less warnings (signed vs. unsigned)
Alex
Diffstat (limited to 'Source/cmHexFileConverter.cxx')
-rw-r--r--Source/cmHexFileConverter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmHexFileConverter.cxx b/Source/cmHexFileConverter.cxx
index f8d369f..254d0cc 100644
--- a/Source/cmHexFileConverter.cxx
+++ b/Source/cmHexFileConverter.cxx
@@ -57,7 +57,7 @@ static bool OutputBin(FILE* file, const char * buf,
char hexNumber[3];
hexNumber[2] = '\0';
char outBuf[256];
- int outBufCount = 0;
+ unsigned int outBufCount = 0;
for (unsigned int i = startIndex; i < stopIndex; i += 2)
{
hexNumber[0] = buf[i];
@@ -198,7 +198,7 @@ cmHexFileConverter::FileType cmHexFileConverter::DetermineFileType(
return Binary;
}
- int slen = ChompStrlen(buf);
+ unsigned int slen = ChompStrlen(buf);
if ((slen < minLineLength) || (slen > maxLineLength))
{
return Binary;