mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 21:09:59 -05:00
COMP: less warnings with msvc8
Alex
This commit is contained in:
@@ -38,7 +38,7 @@ static unsigned int ChompStrlen(const char* line)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
size_t length = strlen(line);
|
||||
unsigned int length = static_cast<unsigned int>(strlen(line));
|
||||
if ((line[length-1] == '\n') || (line[length-1] == '\r'))
|
||||
{
|
||||
length--;
|
||||
|
||||
Reference in New Issue
Block a user