Fix types for 64-bit compilation (issue #131)

This commit is contained in:
Abs62 2012-10-26 16:39:48 +04:00
parent f27ce1f4f2
commit 04339b3ebb
2 changed files with 2 additions and 2 deletions

View file

@ -528,7 +528,7 @@ void AardDictionary::loadArticle( uint32_t address,
if( text.empty() ) if( text.empty() )
text = string( articleBody.data(), articleSize ); text = string( articleBody.data(), articleSize );
uint32_t n = 0; string::size_type n = 0;
while( n < text.size() && text[n] != '\"' ) while( n < text.size() && text[n] != '\"' )
n++; n++;

View file

@ -62,7 +62,7 @@ string convert( string const & in, DICT_TYPE type, map < string, string > const
} }
// Strip "<nu />" tags - QDomDocument don't handle it correctly // Strip "<nu />" tags - QDomDocument don't handle it correctly
unsigned n; string::size_type n;
while( ( n = inConverted.find( "<nu />" ) ) != string::npos ) while( ( n = inConverted.find( "<nu />" ) ) != string::npos )
inConverted.erase( n, 6 ); inConverted.erase( n, 6 );