diff --git a/Source/cmHexFileConverter.cxx b/Source/cmHexFileConverter.cxx index 176ec3b8fd..bf2738384e 100644 --- a/Source/cmHexFileConverter.cxx +++ b/Source/cmHexFileConverter.cxx @@ -38,7 +38,7 @@ static unsigned int ChompStrlen(const char* line) { return 0; } - size_t length = strlen(line); + unsigned int length = static_cast(strlen(line)); if ((line[length-1] == '\n') || (line[length-1] == '\r')) { length--;