Explorar el Código

COMP: less warnings with msvc8

Alex
Alexander Neundorf hace 18 años
padre
commit
cfee916b7c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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--;