[cmake-commits] alex committed cmHexFileConverter.cxx 1.2 1.3

cmake-commits at cmake.org cmake-commits at cmake.org
Mon May 28 08:31:29 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv13659

Modified Files:
	cmHexFileConverter.cxx 
Log Message:

COMP: fix warning on MSVC 8: conversion from 'size_t' to 'unsigned int', possible loss of data

Alex


Index: cmHexFileConverter.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmHexFileConverter.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cmHexFileConverter.cxx	25 May 2007 20:23:57 -0000	1.2
+++ cmHexFileConverter.cxx	28 May 2007 12:31:26 -0000	1.3
@@ -38,7 +38,7 @@
     {
     return 0;
     }
-  unsigned int length = strlen(line);
+  size_t length = strlen(line);
   if ((line[length-1] == '\n') || (line[length-1] == '\r'))
     {
     length--;



More information about the Cmake-commits mailing list