diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-02-03 00:42:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-02-03 00:44:33 +0200 |
commit | 422b2c72a315d209a4fbcaae1d87394eb9e732a7 (patch) | |
tree | 6390b8ba155f2ebb0a9f00c67fdcaa4c879dcd80 /soltools/giparser | |
parent | 6ade6fe1e657b1c8092f6a6c18a4c7776590973d (diff) |
Silence compiler warnings
Diffstat (limited to 'soltools/giparser')
-rw-r--r-- | soltools/giparser/gi_list.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/soltools/giparser/gi_list.cxx b/soltools/giparser/gi_list.cxx index 902ab283d0da..ec03d0a6cd94 100644 --- a/soltools/giparser/gi_list.cxx +++ b/soltools/giparser/gi_list.cxx @@ -143,9 +143,9 @@ List_GenericInfo::InsertInfoByPath( GenericInfo * let_dpInfo, { Simstr aKey( i_sKeyPath, 0, - sNextPathSegment - + (int)(sNextPathSegment - ( *sNextPathSegment == 0 ? 0 : 1) - - i_sKeyPath ); + - i_sKeyPath )); GenericInfo * pNew = new GenericInfo(aKey); InsertInfo(pNew,false); @@ -209,7 +209,7 @@ List_GenericInfo::lower_bound( bool & o_bExists, KeyPath i_sKeyPath ) { o_sNextPathSegment = strchr(i_sKeyPath, '/'); - Simstr sKey( i_sKeyPath, (o_sNextPathSegment == 0 ? strlen(i_sKeyPath) : o_sNextPathSegment++ - i_sKeyPath) ); + Simstr sKey( i_sKeyPath, (int)(o_sNextPathSegment == 0 ? strlen(i_sKeyPath) : o_sNextPathSegment++ - i_sKeyPath) ); GenericInfo aSearch(sKey); unsigned low = 0; |