summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-13 13:07:41 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-13 13:07:41 (GMT)
commit13f88b0a22d36df138db6432c7b94b55a0b17028 (patch)
treef087810f10c14decd9028b8adcf11a490584f15b
parentdf127515433ec6e44179a1e85d212c08b58a8f18 (diff)
downloadCMake-13f88b0a22d36df138db6432c7b94b55a0b17028.zip
CMake-13f88b0a22d36df138db6432c7b94b55a0b17028.tar.gz
CMake-13f88b0a22d36df138db6432c7b94b55a0b17028.tar.bz2
COMP: Remove warnings
-rw-r--r--Source/kwsys/Registry.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/Registry.cxx b/Source/kwsys/Registry.cxx
index fd788d3..a4e8d02 100644
--- a/Source/kwsys/Registry.cxx
+++ b/Source/kwsys/Registry.cxx
@@ -704,7 +704,7 @@ void RegistryHelper::SetSubKey(const char* sk)
//----------------------------------------------------------------------------
char *RegistryHelper::Strip(char *str)
{
- size_t cc;
+ int cc;
size_t len;
char *nstr;
if ( !str )
@@ -713,7 +713,7 @@ char *RegistryHelper::Strip(char *str)
}
len = strlen(str);
nstr = str;
- for( cc=0; cc < len; cc++ )
+ for( cc=0; cc < static_cast<int>(len); cc++ )
{
if ( !isspace( *nstr ) )
{
@@ -721,7 +721,7 @@ char *RegistryHelper::Strip(char *str)
}
nstr ++;
}
- for( cc= strlen(nstr)-1; cc>=0; cc-- )
+ for( cc= static_cast<int>(strlen(nstr))-1; cc>=0; cc-- )
{
if ( !isspace( nstr[cc] ) )
{