diff --git a/aard.cc b/aard.cc index a26ec970..8ac8089c 100644 --- a/aard.cc +++ b/aard.cc @@ -847,7 +847,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( { QFileInfo info( FsEncoding::decode( i->c_str() ) ); - if( info.size() > ULONG_MAX ) + if( static_cast< quint64 >( info.size() ) > ULONG_MAX ) { gdWarning( "File %s is too large\n", i->c_str() ); continue; diff --git a/xdxf.cc b/xdxf.cc index 23a7678b..7cf64e1b 100644 --- a/xdxf.cc +++ b/xdxf.cc @@ -694,7 +694,7 @@ protected: virtual qint64 readData( char * data, qint64 maxSize ); - virtual bool atEnd(); + virtual bool atEnd() const; virtual qint64 writeData ( const char * /*data*/, qint64 /*maxSize*/ ) { return -1; } @@ -717,7 +717,7 @@ GzippedFile::~GzippedFile() dict_data_close( dz ); } -bool GzippedFile::atEnd() +bool GzippedFile::atEnd() const { return gzeof( gz ); }