diff --git a/aard.cc b/aard.cc
index 4373388e..606a0f15 100644
--- a/aard.cc
+++ b/aard.cc
@@ -528,7 +528,7 @@ void AardDictionary::loadArticle( uint32_t address,
if( text.empty() )
text = string( articleBody.data(), articleSize );
- uint32_t n = 0;
+ string::size_type n = 0;
while( n < text.size() && text[n] != '\"' )
n++;
diff --git a/xdxf2html.cc b/xdxf2html.cc
index fe2b103e..93ed0ce2 100644
--- a/xdxf2html.cc
+++ b/xdxf2html.cc
@@ -62,7 +62,7 @@ string convert( string const & in, DICT_TYPE type, map < string, string > const
}
// Strip "" tags - QDomDocument don't handle it correctly
- unsigned n;
+ string::size_type n;
while( ( n = inConverted.find( "" ) ) != string::npos )
inConverted.erase( n, 6 );