Commit 2afdc0f4 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: Remove warnings

parent 672a17cd
...@@ -704,7 +704,7 @@ void RegistryHelper::SetSubKey(const char* sk) ...@@ -704,7 +704,7 @@ void RegistryHelper::SetSubKey(const char* sk)
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
char *RegistryHelper::Strip(char *str) char *RegistryHelper::Strip(char *str)
{ {
size_t cc; int cc;
size_t len; size_t len;
char *nstr; char *nstr;
if ( !str ) if ( !str )
...@@ -713,7 +713,7 @@ char *RegistryHelper::Strip(char *str) ...@@ -713,7 +713,7 @@ char *RegistryHelper::Strip(char *str)
} }
len = strlen(str); len = strlen(str);
nstr = str; nstr = str;
for( cc=0; cc < len; cc++ ) for( cc=0; cc < static_cast<int>(len); cc++ )
{ {
if ( !isspace( *nstr ) ) if ( !isspace( *nstr ) )
{ {
...@@ -721,7 +721,7 @@ char *RegistryHelper::Strip(char *str) ...@@ -721,7 +721,7 @@ char *RegistryHelper::Strip(char *str)
} }
nstr ++; nstr ++;
} }
for( cc= strlen(nstr)-1; cc>=0; cc-- ) for( cc= static_cast<int>(strlen(nstr))-1; cc>=0; cc-- )
{ {
if ( !isspace( nstr[cc] ) ) if ( !isspace( nstr[cc] ) )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment