diff options
Diffstat (limited to 'soltools/giparser/gi_list.cxx')
-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; |