Просмотр исходного кода

COMP: less warnings with msvc8

Alex
Alexander Neundorf 18 лет назад
Родитель
Сommit
cfee916b7c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmHexFileConverter.cxx

+ 1 - 1
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<unsigned int>(strlen(line));
   if ((line[length-1] == '\n') || (line[length-1] == '\r'))
     {
     length--;