From d6f779a9b0abf2a00119c9ab9ab73e360ba1bf7f Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Fri, 25 May 2007 16:23:57 -0400 Subject: [PATCH] COMP: less warnings (signed vs. unsigned) Alex --- Source/cmHexFileConverter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmHexFileConverter.cxx b/Source/cmHexFileConverter.cxx index f8d369f1d..254d0cc1e 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;