COMP: less warnings (signed vs. unsigned)

Alex
This commit is contained in:
Alexander Neundorf 2007-05-25 16:23:57 -04:00
parent 775f012fae
commit d6f779a9b0

View File

@ -57,7 +57,7 @@ static bool OutputBin(FILE* file, const char * buf,
char hexNumber[3]; char hexNumber[3];
hexNumber[2] = '\0'; hexNumber[2] = '\0';
char outBuf[256]; char outBuf[256];
int outBufCount = 0; unsigned int outBufCount = 0;
for (unsigned int i = startIndex; i < stopIndex; i += 2) for (unsigned int i = startIndex; i < stopIndex; i += 2)
{ {
hexNumber[0] = buf[i]; hexNumber[0] = buf[i];
@ -198,7 +198,7 @@ cmHexFileConverter::FileType cmHexFileConverter::DetermineFileType(
return Binary; return Binary;
} }
int slen = ChompStrlen(buf); unsigned int slen = ChompStrlen(buf);
if ((slen < minLineLength) || (slen > maxLineLength)) if ((slen < minLineLength) || (slen > maxLineLength))
{ {
return Binary; return Binary;