From 422b2c72a315d209a4fbcaae1d87394eb9e732a7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 3 Feb 2011 00:42:20 +0200 Subject: Silence compiler warnings --- soltools/giparser/gi_list.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'soltools/giparser') 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; -- cgit