Compilation and warning fixes for GCC 3.2.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-10-22 20:54:50 +00:00
parent 63407846da
commit 753287c1fd
5 changed files with 9 additions and 9 deletions

View File

@@ -904,11 +904,11 @@ static void arrange_indirection_tokens_between( string& type,
{ {
// TBD:: FIXME:: return value of operators ! // TBD:: FIXME:: return value of operators !
while ( identifier[0] == '*' || while ( identifier[0u] == '*' ||
identifier[0] == '&' identifier[0u] == '&'
) )
{ {
type += identifier[0]; type += identifier[0u];
identifier.erase(0,1); identifier.erase(0,1);
if ( !identifier.length() ) return; if ( !identifier.length() ) return;

View File

@@ -639,18 +639,18 @@ void SourcePainter::GetResultString(string& result, MarkupTagsT tags)
// ASSERT( mCollectResultsOn ); // ASSERT( mCollectResultsOn );
result = ""; result = "";
int pos = 0; unsigned pos = 0;
for( size_t i = 0; i != mBlocks.size(); ++i ) for( size_t i = 0; i != mBlocks.size(); ++i )
{ {
int desc = mBlocks[i]; int desc = mBlocks[i];
int len = desc & 0xFFFF; unsigned len = desc & 0xFFFF;
int rank = (desc >> 16) & 0xFFFF; int rank = (desc >> 16) & 0xFFFF;
result += tags[ rank_tags_map[rank] ].start; result += tags[ rank_tags_map[rank] ].start;
for( int n = 0; n != len; ++n ) for( unsigned n = 0; n != len; ++n )
result += mResultStr[pos+n]; result += mResultStr[pos+n];